mirror of
https://github.com/talent-plan/tinykv.git
synced 2024-12-25 20:30:30 +08:00
refactor(raft_storage): remove dead code (#351)
This commit is contained in:
parent
90e2dfaffa
commit
c82fd58ed8
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user