Commit bfda6c6
authored
fix: improve ReadBatch flush error handling (#16)
- Replace option.is_none() + unwrap() with match pattern
- Return ShardLeaderNotFound error to inflight operations instead of
silently dropping them when shard leader is not found
Signed-off-by: mattisonchao <mattisonchao@gmail.com>1 parent 9fa6bb9 commit bfda6c6
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| |||
0 commit comments