Explorar el Código

darkirc: Update eventgraph API

parazyd hace 2 años
padre
commit
648989e36c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bin/darkirc/src/irc/client.rs

+ 1 - 1
bin/darkirc/src/irc/client.rs

@@ -159,7 +159,7 @@ impl Client {
 
                             // If it fails for some reason, for now, we just note it
                             // and pass.
-                            if let Err(e) = self.server.darkirc.event_graph.dag_insert(event.clone()).await {
+                            if let Err(e) = self.server.darkirc.event_graph.dag_insert(&[event.clone()]).await {
                                 error!("[IRC CLIENT] Failed inserting new event to DAG: {}", e);
                             } else {
                                 // We sent this, so it should be considered seen.