Co-authored-by: Hoa Nguyen <hoa@notional.ventures> Co-authored-by: marbar3778 <marbar3778@yahoo.com>
This commit is contained in:
parent
5f534c9e11
commit
aab02aba36
@ -247,7 +247,7 @@ func (c *Consensus[T]) Query(ctx context.Context, req *abciproto.QueryRequest) (
|
||||
}
|
||||
|
||||
func (c *Consensus[T]) maybeRunGRPCQuery(ctx context.Context, req *abci.QueryRequest) (resp *abciproto.QueryResponse, isGRPC bool, err error) {
|
||||
// if this fails then we cannot serve queries anymore
|
||||
// if this fails then we cannot serve queries anymore
|
||||
registry, err := c.getProtoRegistry()
|
||||
if err != nil {
|
||||
return nil, false, err
|
||||
|
||||
@ -23,7 +23,7 @@ func (roa *ReaderMap) GetReader(actor []byte) (corestore.Reader, error) {
|
||||
return NewMockReader(roa.version, roa.store, actor), nil
|
||||
}
|
||||
|
||||
// Reader represents a read-only adapter for accessing data from the root store.
|
||||
// MockReader represents a read-only adapter for accessing data from the root store.
|
||||
type MockReader struct {
|
||||
version uint64 // The version of the data.
|
||||
store *MockStore // The root store to read data from.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user