更多的东西用config.json保存

This commit is contained in:
dmy@lab
2016-01-30 00:34:01 +08:00
parent 9a18b5323d
commit dee06848fb
3 changed files with 24 additions and 18 deletions

View File

@@ -4,7 +4,6 @@ import (
"container/list"
"fmt"
"github.com/TransX/log"
"github.com/TransX/model"
"sync"
)
@@ -60,14 +59,9 @@ func (this *TunnelStatusManager) chanListener() {
select {
case r := <-this.regChan:
this.register(r)
m := r.(*model.Tunnel)
log.Debug("A tunnel registered id %s", m.GetID())
log.Debug(this.QueryStatString())
case ur := <-this.unregChan:
this.unregister(ur)
m := ur.(*model.Tunnel)
log.Debug("A tunnel unregistered id %s", m.GetID())
}
}
}