mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Fix dependency build error, rename operation modifier
This commit is contained in:
1 parent
180c14542c
commit
33aab8f870
12 files changed
+48
-45
No files matched your search
@@ -1,2 +1,2 @@
|
||||
mod svelto_uuid_copy;
|
||||
pub use svelto_uuid_copy::OpIdCopy;
|
||||
mod op_mod;
|
||||
pub use op_mod::RcOpModifier;
|
||||
@@ -1,12 +1,12 @@
|
||||
use polariton_server::operations::OperationModifier;
|
||||
|
||||
pub struct OpIdCopy;
|
||||
pub struct RcOpModifier;
|
||||
|
||||
impl OpIdCopy {
|
||||
impl RcOpModifier {
|
||||
const SERVICE_MAPPING_KEY: u8 = 0;
|
||||
}
|
||||
|
||||
impl <C: Clone + Send + Sync + 'static> OperationModifier<C> for OpIdCopy {
|
||||
impl <C: Clone + Send + Sync + 'static> OperationModifier<C> for RcOpModifier {
|
||||
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 let Some(svelto_service_id) = req.params.get(&Self::SERVICE_MAPPING_KEY) {
|
||||
Reference in new issue
Block a user