Fix panic & query router bug (#85)

* Fix query router bug

* Fix panic
This commit is contained in:
Lev Kokotov
2022-06-24 15:14:31 -07:00
committed by GitHub
parent b93303eb83
commit f06f64119c
2 changed files with 8 additions and 6 deletions

View File

@@ -302,7 +302,11 @@ impl Client {
// Handle all custom protocol commands, if any.
match query_router.try_execute_command(message.clone()) {
// Normal query, not a custom command.
None => (),
None => {
if query_router.query_parser_enabled() {
query_router.infer_role(message.clone());
}
}
// SET SHARD TO
Some((Command::SetShard, _)) => {