From d21953e458fdcde2249a03afa8ca04fe540c783c Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Mon, 11 Mar 2019 11:31:02 +0200 Subject: [PATCH] Add a userdata field to the DaemonAPI to support attaching application data --- libp2p/daemon/daemonapi.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/libp2p/daemon/daemonapi.nim b/libp2p/daemon/daemonapi.nim index 3e36dc8f8..abfd99db5 100644 --- a/libp2p/daemon/daemonapi.nim +++ b/libp2p/daemon/daemonapi.nim @@ -121,6 +121,7 @@ type servers*: seq[P2PServer] log*: string loggerFut*: Future[void] + userData*: RootRef PeerInfo* = object peer*: PeerID