From 3a7bf94a08474064d639b91a4e899e572c7988a2 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 27 Feb 2024 03:11:00 -0500 Subject: [PATCH] fix: add more mapstructure tags --- config/config.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/config.go b/config/config.go index b477980..c3019f6 100644 --- a/config/config.go +++ b/config/config.go @@ -7,16 +7,16 @@ import ( ) type NodeConfig struct { - P2P P2PConfig + P2P P2PConfig `mapstructure:"p2p"` KeyPair *ed25519.KeyPairEd25519 DB *bolt.DB Logger *zap.Logger - HTTP HTTPConfig + HTTP HTTPConfig `mapstructure:"http"` } type P2PConfig struct { - Network string `mapstructure:"network"` - Peers PeersConfig - MaxOutgoingPeerFailures uint `mapstructure:"max_outgoing_peer_failures"` + Network string `mapstructure:"network"` + Peers PeersConfig `mapstructure:"peers"` + MaxOutgoingPeerFailures uint `mapstructure:"max_outgoing_peer_failures"` } type PeersConfig struct { @@ -29,5 +29,5 @@ type HTTPAPIConfig struct { } type HTTPConfig struct { - API HTTPAPIConfig + API HTTPAPIConfig `mapstructure:"api"` }