MCPcopy Create free account
hub / github.com/Rustixir/darkbird / check

Method check

src/darkbird/router.rs:221–231  ·  view source on GitHub ↗

Check channel to registered before

(&self, chan: &Sender<Msg>)

Source from the content-addressed store, hash-verified

219
220 /// Check channel to registered before
221 fn check(&self, chan: &Sender<Msg>) -> Result<(), ()> {
222 for (_index, dst) in self.channels.iter().enumerate() {
223
224 // if channel was same
225 if chan.same_channel(dst) {
226 return Err(())
227 }
228
229 }
230 Ok(())
231 }
232}
233
234

Callers 1

handle_recvMethod · 0.80

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected