diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-08-06 11:14:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-06 11:14:02 +0800 |
commit | bb95322f46524ea52b6762c349905dcc910814c8 (patch) | |
tree | cf53a3b40e5eaba66eb8d837215650fab9b6150c /simulation/validator.go | |
parent | 4b606c3c12db824cb996d9eca43c1b66b2bdb440 (diff) | |
download | dexon-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.go | 2 |
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 } |