aboutsummaryrefslogtreecommitdiffstats
path: root/simulation/validator.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-08-06 11:14:02 +0800
committerGitHub <noreply@github.com>2018-08-06 11:14:02 +0800
commitbb95322f46524ea52b6762c349905dcc910814c8 (patch)
treecf53a3b40e5eaba66eb8d837215650fab9b6150c /simulation/validator.go
parent4b606c3c12db824cb996d9eca43c1b66b2bdb440 (diff)
downloaddexon-consensus-bb95322f46524ea52b6762c349905dcc910814c8.tar
dexon-consensus-bb95322f46524ea52b6762c349905dcc910814c8.tar.gz
dexon-consensus-bb95322f46524ea52b6762c349905dcc910814c8.tar.bz2
dexon-consensus-bb95322f46524ea52b6762c349905dcc910814c8.tar.lz
dexon-consensus-bb95322f46524ea52b6762c349905dcc910814c8.tar.xz
dexon-consensus-bb95322f46524ea52b6762c349905dcc910814c8.tar.zst
dexon-consensus-bb95322f46524ea52b6762c349905dcc910814c8.zip
simulation: free resource after use and misc fix for k8s mode (#31)
Diffstat (limited to 'simulation/validator.go')
-rw-r--r--simulation/validator.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/simulation/validator.go b/simulation/validator.go
index 97412b1..7397284 100644
--- a/simulation/validator.go
+++ b/simulation/validator.go
@@ -100,7 +100,7 @@ func (v *Validator) Wait() {
func (v *Validator) CheckServerInfo(isShutdown chan struct{}) {
for {
infoMsg := v.network.GetServerInfo()
- if infoMsg.Status == shutdown {
+ if infoMsg.Status == statusShutdown {
isShutdown <- struct{}{}
break
}