mirror of
https://github.com/talent-plan/tinykv.git
synced 2026-08-19 13:03:28 +08:00
refactor(raft_storage): remove dead code (#351)
This commit is contained in:
@@ -146,9 +146,6 @@ func (rs *RaftStorage) Reader(ctx *kvrpcpb.Context) (storage.StorageReader, erro
|
||||
if cb.Txn == nil {
|
||||
panic("can not found region snap")
|
||||
}
|
||||
if len(resp.Responses) != 1 {
|
||||
panic("wrong response count for snap cmd")
|
||||
}
|
||||
return NewRegionReader(cb.Txn, *resp.Responses[0].GetSnap().Region), nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user