fix: codereview

This commit is contained in:
Richard Ramos 2020-06-02 12:40:38 -04:00 committed by Iuri Matias
parent 886f58491d
commit 4670bd57c4
2 changed files with 3 additions and 2 deletions

View File

@ -6,4 +6,5 @@ proc fromEvent*(jsonSignal: JsonNode): Signal =
if jsonSignal["event"].kind != JNull: if jsonSignal["event"].kind != JNull:
for discoveryItem in jsonSignal["event"]: for discoveryItem in jsonSignal["event"]:
signal.enodes.add(discoveryItem["enode"].getStr) signal.enodes.add(discoveryItem["enode"].getStr)
result = signal result = signal

View File

@ -86,4 +86,4 @@ type WhisperFilterSignal* = ref object of Signal
filters*: seq[Filter] filters*: seq[Filter]
type DiscoverySummarySignal* = ref object of Signal type DiscoverySummarySignal* = ref object of Signal
enodes*: seq[string] enodes*: seq[string]