mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
v3rpc: do not panic on user error for watch
This commit is contained in:
parent
ef65dfe2eb
commit
caccf8e5e6
@ -199,9 +199,11 @@ func (sws *serverWatchStream) recvLoop() error {
|
|||||||
sws.mu.Unlock()
|
sws.mu.Unlock()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO: do we need to return error back to client?
|
|
||||||
default:
|
default:
|
||||||
panic("not implemented")
|
// we probably should not shutdown the entire stream when
|
||||||
|
// receive an valid command.
|
||||||
|
// so just do nothing instead.
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user