Skip to content

Commit

Permalink
fix: add clusterID to NodeConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-ramos authored and iurimatias committed Dec 8, 2023
1 parent abb298b commit 0368474
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type

ClusterConfig* = object
Enabled*: bool
ClusterID*: int
Fleet*: string
StaticNodes*: seq[string]
BootNodes*: seq[string]
Expand Down Expand Up @@ -247,6 +248,7 @@ proc toNetwork*(jsonObj: JsonNode): Network =
discard jsonObj.getProp("enabled", result.enabled)

proc toClusterConfig*(jsonObj: JsonNode): ClusterConfig =
discard jsonObj.getProp("ClusterID", result.ClusterID)
discard jsonObj.getProp("Enabled", result.Enabled)
discard jsonObj.getProp("Fleet", result.Fleet)

Expand Down

0 comments on commit 0368474

Please sign in to comment.