mirror of
https://github.com/talent-plan/tinykv.git
synced 2024-12-26 21:00:12 +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 {
|
if cb.Txn == nil {
|
||||||
panic("can not found region snap")
|
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
|
return NewRegionReader(cb.Txn, *resp.Responses[0].GetSnap().Region), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user