mirror of https://github.com/vacp2p/nim-libp2p.git
remove useless methods
This commit is contained in:
parent
4edd2c9f8a
commit
40e75a7635
|
@ -8,7 +8,9 @@
|
||||||
## those terms.
|
## those terms.
|
||||||
|
|
||||||
import chronos
|
import chronos
|
||||||
import peerinfo, multiaddress, stream/lpstream, peerinfo, varint, vbuffer
|
import peerinfo, multiaddress,
|
||||||
|
stream/lpstream, peerinfo,
|
||||||
|
varint, vbuffer
|
||||||
|
|
||||||
const DefaultReadSize: uint = 64 * 1024
|
const DefaultReadSize: uint = 64 * 1024
|
||||||
|
|
||||||
|
@ -103,11 +105,6 @@ proc writeLp*(s: Connection, msg: string | seq[byte]) {.async, gcsafe.} =
|
||||||
buf.finish()
|
buf.finish()
|
||||||
result = s.write(buf.buffer)
|
result = s.write(buf.buffer)
|
||||||
|
|
||||||
method getPeerInfo*(c: Connection): Future[PeerInfo] {.base, async, gcsafe.} =
|
|
||||||
## get up to date peer info
|
|
||||||
## TODO: implement PeerInfo refresh over identify
|
|
||||||
discard
|
|
||||||
|
|
||||||
method getObservedAddrs*(c: Connection): Future[MultiAddress] {.base, async, gcsafe.} =
|
method getObservedAddrs*(c: Connection): Future[MultiAddress] {.base, async, gcsafe.} =
|
||||||
## get resolved multiaddresses for the connection
|
## get resolved multiaddresses for the connection
|
||||||
discard
|
discard
|
||||||
|
|
Loading…
Reference in New Issue