This commit is contained in:
@@ -302,11 +302,9 @@ func (p *SyncedPool) handleConnection(conn net.Conn) {
|
||||
case RemoteGrainChanged:
|
||||
// remote grain changed
|
||||
grainSyncCount.Inc()
|
||||
log.Printf("Remote grain changed\n")
|
||||
|
||||
idAndHost := make([]byte, packet.DataLength)
|
||||
_, err = conn.Read(idAndHost)
|
||||
log.Printf("Remote grain %s changed\n", idAndHost)
|
||||
if err != nil {
|
||||
break
|
||||
}
|
||||
@@ -328,7 +326,6 @@ func (p *SyncedPool) handleConnection(conn net.Conn) {
|
||||
|
||||
if !found {
|
||||
log.Printf("Remote host %s not found\n", idAndHostParts[1])
|
||||
log.Printf("Remotes %v\n", p.remotes)
|
||||
} else {
|
||||
SendPacket(conn, AckChange, func(w io.Writer) error {
|
||||
_, err := w.Write([]byte("ok"))
|
||||
|
||||
Reference in New Issue
Block a user