로그 정리

This commit is contained in:
2023-06-13 23:54:32 +09:00
parent 4cec01609a
commit 20b2df1fc5
2 changed files with 0 additions and 11 deletions

View File

@ -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) {