From 682fecc395b87290214ac3c2c3a50d7570e9fbe3 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Thu, 29 Aug 2019 23:15:43 -0600 Subject: [PATCH] make things public --- libp2p/connection.nim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libp2p/connection.nim b/libp2p/connection.nim index c0c29f6..7365f9f 100644 --- a/libp2p/connection.nim +++ b/libp2p/connection.nim @@ -15,7 +15,7 @@ const DefaultReadSize: uint = 64*1024 type Connection* = ref object of LPStream peerInfo*: PeerInfo - stream: LPStream + stream*: LPStream proc newConnection*(stream: LPStream): Connection = ## create a new Connection for the specified async reader/writer @@ -88,12 +88,11 @@ proc writeLp*(s: Connection, msg: string | seq[byte]) {.async.} = buf.finish() result = s.write(buf.buffer) -method getPeerInfo* (c: Connection): Future[PeerInfo] {.base, async.} = +method getPeerInfo*(c: Connection): Future[PeerInfo] {.base, async.} = ## get up to date peer info ## TODO: implement PeerInfo refresh over identify discard -method getObservedAddrs(c: Connection): Future[seq[MultiAddress]] {.base, - async.} = +method getObservedAddrs*(c: Connection): Future[MultiAddress] {.base, async.} = ## get resolved multiaddresses for the connection discard