로그 정리
This commit is contained in:
@ -2,7 +2,6 @@ package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"reflect"
|
||||
"sync"
|
||||
@ -71,9 +70,6 @@ func (sp *hostPool) regist(desc *protos.OperationQueryRequest) (string, chan *op
|
||||
host = makeHostWithChan(desc).withOpChan(host.opChan)
|
||||
}
|
||||
sp.hosts[desc.Hostname] = host
|
||||
|
||||
test, _ := json.Marshal(sp.hosts)
|
||||
shared.Logger().Println(string(test))
|
||||
return desc.Hostname, host.opChan
|
||||
}
|
||||
|
||||
@ -86,9 +82,6 @@ func (sp *hostPool) refresh(desc *protos.OperationQueryRequest) {
|
||||
host = makeHostWithChan(desc).withOpChan(host.opChan)
|
||||
sp.hosts[desc.Hostname] = host
|
||||
}
|
||||
|
||||
test, _ := json.Marshal(sp.hosts)
|
||||
shared.Logger().Println(string(test))
|
||||
}
|
||||
|
||||
func (sp *hostPool) unregist(key string) {
|
||||
|
||||
Reference in New Issue
Block a user