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

Method vec_subscribe

src/darkbird/database.rs:26–33  ·  view source on GitHub ↗
(&self, sender: Sender<Event<VectorId, Vector>>)

Source from the content-addressed store, hash-verified

24
25 #[inline]
26 pub async fn vec_subscribe(&self, sender: Sender<Event<VectorId, Vector>>) -> Result<(), SessionResult> {
27 match self.datastores.get::<VecStorage>() {
28 None => Err(SessionResult::DataStoreNotFound),
29 Some(datastore) => {
30 datastore.subscribe(sender).await
31 }
32 }
33 }
34
35 #[inline]
36 pub async fn vec_insert(&self, vector_id: VectorId, vector: Vec<f32>) -> Result<(), SessionResult> {

Callers

nothing calls this directly

Calls 1

subscribeMethod · 0.45

Tested by

no test coverage detected