Skip to content

Commit

Permalink
revert whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed Sep 27, 2024
1 parent a8f7d8e commit 6a9e803
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions server/v2/cometbft/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,7 @@ func (c *Consensus[T]) Info(ctx context.Context, _ *abciproto.InfoRequest) (*abc

// Query implements types.Application.
// It is called by cometbft to query application state.
func (c *Consensus[T]) Query(
ctx context.Context, req *abciproto.QueryRequest,
) (resp *abciproto.QueryResponse, err error) {
func (c *Consensus[T]) Query(ctx context.Context, req *abciproto.QueryRequest) (resp *abciproto.QueryResponse, err error) {
// check if it's a gRPC method
makeGRPCRequest, isGRPC := c.grpcMethodsMap[req.Path]
if isGRPC {
Expand Down Expand Up @@ -240,9 +238,7 @@ func (c *Consensus[T]) Query(
}

// InitChain implements types.Application.
func (c *Consensus[T]) InitChain(ctx context.Context, req *abciproto.InitChainRequest) (
*abciproto.InitChainResponse, error,
) {
func (c *Consensus[T]) InitChain(ctx context.Context, req *abciproto.InitChainRequest) (*abciproto.InitChainResponse, error) {
c.logger.Info("InitChain", "initialHeight", req.InitialHeight, "chainID", req.ChainId)

// store chainID to be used later on in execution
Expand Down Expand Up @@ -558,9 +554,7 @@ func (c *Consensus[T]) VerifyVoteExtension(
}

// ExtendVote implements types.Application.
func (c *Consensus[T]) ExtendVote(ctx context.Context, req *abciproto.ExtendVoteRequest) (
*abciproto.ExtendVoteResponse, error,
) {
func (c *Consensus[T]) ExtendVote(ctx context.Context, req *abciproto.ExtendVoteRequest) (*abciproto.ExtendVoteResponse, error) {
// If vote extensions are not enabled, as a safety precaution, we return an
// error.
cp, err := c.GetConsensusParams(ctx)
Expand Down

0 comments on commit 6a9e803

Please sign in to comment.