Skip to content

Commit

Permalink
chore(server/v2/cometbft): simplify getProtoRegistry (backport #22248) (
Browse files Browse the repository at this point in the history
#22260)

Co-authored-by: Hoa Nguyen <[email protected]>
Co-authored-by: Julien Robert <[email protected]>
  • Loading branch information
3 people authored Oct 15, 2024
1 parent f15e5b9 commit 5f534c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/v2/cometbft/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func NewConsensus[T transaction.Tx](
indexedEvents: indexedEvents,
initialHeight: 0,
queryHandlersMap: queryHandlersMap,
getProtoRegistry: sync.OnceValues(func() (*protoregistry.Files, error) { return gogoproto.MergedRegistry() }),
getProtoRegistry: sync.OnceValues(gogoproto.MergedRegistry),
}
}

Expand Down

0 comments on commit 5f534c9

Please sign in to comment.