Skip to content

Commit

Permalink
fix(lint): make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed Nov 23, 2022
1 parent be23280 commit 95d7857
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/actor/cosmos/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,10 @@ func NewGrpcClient(address string, transportCreds credentials.TransportCredentia

func (client *GrpcClient) Receive(ctx actor.Context) {
switch msg := ctx.Message().(type) {
case *actor.Started:
log.Info().Msg("GRPC connection started.")
break
case *actor.Stopping:
if err := client.grpcConn.Close(); err != nil {
log.Warn().Err(err).Msg("😥 Could not close grpc connection.")
}
break
case *messages.GetBlock:
goCTX, cancelFunc := context.WithCancel(context.Background())
defer cancelFunc()
Expand All @@ -49,10 +45,6 @@ func (client *GrpcClient) Receive(ctx actor.Context) {
ctx.Respond(&messages.GetBlockResponse{
Block: block,
})

log.Info().Fields(block).Msg("Request GetBlock")
default:
log.Info().Fields(msg).Msg("No message")
}
}

Expand Down

0 comments on commit 95d7857

Please sign in to comment.