document timeouts in specs
This commit is contained in:
parent
32906e4fc0
commit
60e4ee8362
|
@ -87,6 +87,7 @@ Request{
|
|||
ConnectRequest: {
|
||||
Peer: <peer id>,
|
||||
Addrs: [<addr>, ...],
|
||||
timeout: time, // optional, in seconds
|
||||
},
|
||||
}
|
||||
```
|
||||
|
@ -134,6 +135,7 @@ Request{
|
|||
StreamOpenRequest: {
|
||||
Peer: <peer id>,
|
||||
Proto: [<protocol string>, ...],
|
||||
timeout: time, // optional, in seconds
|
||||
},
|
||||
}
|
||||
```
|
||||
|
|
|
@ -30,6 +30,8 @@ messages have a `Type` parameter that specifies whether a response marks the
|
|||
the `END` of a stream of messages. Single-value responses will simply return a
|
||||
single `DHTResponse` with type `VALUE`.
|
||||
|
||||
All `DHTRequest`s also take an optional timeout in seconds.
|
||||
|
||||
### Protocol Requests
|
||||
|
||||
*Protocols described in pseudo-go. Items of the form [item, ...] are lists of
|
||||
|
|
Loading…
Reference in New Issue