Explorar o código

remove id from Inv struct

ghassmo %!s(int64=3) %!d(string=hai) anos
pai
achega
48b21d5d55
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      bin/ircd/src/protocol_privmsg.rs

+ 1 - 4
bin/ircd/src/protocol_privmsg.rs

@@ -4,7 +4,6 @@ use async_executor::Executor;
 use async_trait::async_trait;
 use async_trait::async_trait;
 use chrono::Utc;
 use chrono::Utc;
 use log::debug;
 use log::debug;
-use rand::{rngs::OsRng, RngCore};
 use ripemd::{Digest, Ripemd160};
 use ripemd::{Digest, Ripemd160};
 
 
 use darkfi::{
 use darkfi::{
@@ -28,13 +27,11 @@ const UNREAD_MSG_EXPIRE_TIME: i64 = 259200;
 #[derive(SerialDecodable, SerialEncodable, Clone)]
 #[derive(SerialDecodable, SerialEncodable, Clone)]
 struct Inv {
 struct Inv {
     invs: Vec<InvObject>,
     invs: Vec<InvObject>,
-    id: u64,
 }
 }
 
 
 impl Inv {
 impl Inv {
     fn new(invs: Vec<InvObject>) -> Self {
     fn new(invs: Vec<InvObject>) -> Self {
-        let id = OsRng.next_u64();
-        Self { invs, id }
+        Self { invs }
     }
     }
 }
 }