how to await tokio_timer::sleep?

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

No files matched your search

+15 -2
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;
}
}