how to await tokio_timer::sleep?

This commit is contained in:
open-trade
2020-03-07 00:37:23 +08:00
parent 1695b5e357
commit f7cb0cfde6
6 changed files with 840 additions and 88 deletions

View File

@@ -1,9 +1,22 @@
syntax = "proto3";
package hbb;
message RegisterPeer {
string hbb_addr = 1;
}
message PeekPeer {
string hbb_addr = 1;
}
message PeekPeerResponse {
bytes socket_addr = 1;
}
message Message {
string addr = 1; // hbb address
oneof union {
bytes socket_addr = 6;
RegisterPeer register_peer = 6;
PeekPeer peek_peer = 7;
PeekPeerResponse peek_peer_response = 8;
}
}

View File

@@ -1,2 +0,0 @@
mod message;
pub use message::*;