review(call): fix fmt drift in adapter.rs and env.rs (call/review-call-sync)
This commit is contained in:
@@ -559,7 +559,8 @@ mod tests {
|
|||||||
.set_identity(peer_identity)
|
.set_identity(peer_identity)
|
||||||
.expect("identity not yet set");
|
.expect("identity not yet set");
|
||||||
|
|
||||||
let context = adapter.build_root_context("req-5".to_string(), "fs/readFile", None, None, &conn);
|
let context =
|
||||||
|
adapter.build_root_context("req-5".to_string(), "fs/readFile", None, None, &conn);
|
||||||
|
|
||||||
let scoped = ScopedOperationEnv::new(["worker/exec"]);
|
let scoped = ScopedOperationEnv::new(["worker/exec"]);
|
||||||
let invoke_ctx = OperationContext {
|
let invoke_ctx = OperationContext {
|
||||||
@@ -616,7 +617,8 @@ mod tests {
|
|||||||
);
|
);
|
||||||
conn.register_imported(imported);
|
conn.register_imported(imported);
|
||||||
|
|
||||||
let context = adapter.build_root_context("req-6".to_string(), "fs/readFile", None, None, &conn);
|
let context =
|
||||||
|
adapter.build_root_context("req-6".to_string(), "fs/readFile", None, None, &conn);
|
||||||
|
|
||||||
let scoped = ScopedOperationEnv::new(["worker/exec"]);
|
let scoped = ScopedOperationEnv::new(["worker/exec"]);
|
||||||
let invoke_ctx = OperationContext {
|
let invoke_ctx = OperationContext {
|
||||||
|
|||||||
@@ -283,9 +283,7 @@ impl OperationEnv for PeerCompositeEnv {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn peer_contains(&self, peer: &PeerId, name: &str) -> bool {
|
fn peer_contains(&self, peer: &PeerId, name: &str) -> bool {
|
||||||
self.connections
|
self.connections.get(peer).is_some_and(|c| c.contains(name))
|
||||||
.get(peer)
|
|
||||||
.is_some_and(|c| c.contains(name))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn peer_ids(&self) -> Vec<PeerId> {
|
fn peer_ids(&self) -> Vec<PeerId> {
|
||||||
|
|||||||
Reference in New Issue
Block a user