v3rpc: do not panic on user error for watch

This commit is contained in:
Xiang Li 2016-07-03 08:57:48 -07:00 committed by Gyu-Ho Lee
parent ef65dfe2eb
commit caccf8e5e6

View File

@ -199,9 +199,11 @@ func (sws *serverWatchStream) recvLoop() error {
sws.mu.Unlock()
}
}
// TODO: do we need to return error back to client?
default:
panic("not implemented")
// we probably should not shutdown the entire stream when
// receive an valid command.
// so just do nothing instead.
continue
}
}
}