1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Add new message flags parameter to op modifier

This commit is contained in:
NG (Graham)
2025-05-29 22:10:21 -04:00
parent 17310906f6
commit 95666c30d1

View File

@@ -7,7 +7,7 @@ impl OpIdCopy {
} }
impl <C: Clone + Send + Sync + 'static> OperationModifier<C> for OpIdCopy { impl <C: Clone + Send + Sync + 'static> OperationModifier<C> for OpIdCopy {
fn after(&self, req: &mut polariton::operation::OperationRequest<C>, resp: &mut polariton::operation::OperationResponse<C>) { fn after(&self, req: &mut polariton::operation::OperationRequest<C>, resp: &mut polariton::operation::OperationResponse<C>, _flags: &mut u8) {
if resp.params.get(&Self::SERVICE_MAPPING_KEY).is_none() { if resp.params.get(&Self::SERVICE_MAPPING_KEY).is_none() {
if let Some(svelto_service_id) = req.params.get(&Self::SERVICE_MAPPING_KEY) { if let Some(svelto_service_id) = req.params.get(&Self::SERVICE_MAPPING_KEY) {
resp.params.insert(Self::SERVICE_MAPPING_KEY, svelto_service_id.to_owned()); resp.params.insert(Self::SERVICE_MAPPING_KEY, svelto_service_id.to_owned());