aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/monitorcmd.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-06-10 16:23:00 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-06-10 16:23:00 +0800
commit90e07b19abaa950eaaff2eecc4918b1d16ebbcaf (patch)
treec742c17da28dc67f41d9779eec0bc3427432e044 /cmd/geth/monitorcmd.go
parent63d1d145e2b2c8db4106d87767842019492e0aea (diff)
downloaddexon-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.tar
dexon-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.tar.gz
dexon-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.tar.bz2
dexon-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.tar.lz
dexon-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.tar.xz
dexon-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.tar.zst
dexon-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.zip
cmd: fix CLI package deprecation warnings
Diffstat (limited to 'cmd/geth/monitorcmd.go')
-rw-r--r--cmd/geth/monitorcmd.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/geth/monitorcmd.go b/cmd/geth/monitorcmd.go
index 7058b432f..11fdca89c 100644
--- a/cmd/geth/monitorcmd.go
+++ b/cmd/geth/monitorcmd.go
@@ -67,7 +67,7 @@ to display multiple metrics simultaneously.
)
// monitor starts a terminal UI based monitoring tool for the requested metrics.
-func monitor(ctx *cli.Context) {
+func monitor(ctx *cli.Context) error {
var (
client rpc.Client
err error
@@ -154,6 +154,7 @@ func monitor(ctx *cli.Context) {
}
}()
termui.Loop()
+ return nil
}
// retrieveMetrics contacts the attached geth node and retrieves the entire set