Skip to content

Commit 8c395a1

Browse files
committed
last cleaning codebase
1 parent f622adb commit 8c395a1

File tree

2 files changed

+114
-143
lines changed

2 files changed

+114
-143
lines changed

cmd/network-monitor/commands/root.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ var RootCmd = &cobra.Command{
9696

9797
logger := mLogger.PackageLogger("network_monitor")
9898

99-
logger.WithField("addr", addr).Info("serving discovery api...")
99+
logger.WithField("addr", addr).Info("Serving Network Monitor API...")
100100

101101
pubKey := cipher.PubKey{}
102102
pubKey.Set(pk) //nolint
@@ -107,10 +107,9 @@ var RootCmd = &cobra.Command{
107107

108108
var nmConfig api.NetworkMonitorConfig
109109
nmConfig.CleaningDelay = cleaningDelay
110-
nmConfig.PK = pubKey
111-
nmConfig.SK = secKey
112-
nmConfig.Sign = nmSign
113-
nmConfig.BatchSize = batchSize
110+
nmConfig.PublicKey = pubKey
111+
nmConfig.SecretKey = secKey
112+
nmConfig.Signature = nmSign
114113

115114
nmAPI := api.New(s, logger, srvURLs, nmConfig)
116115

0 commit comments

Comments
 (0)