Skip to content

Commit

Permalink
chore: add log to defer cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Oct 25, 2024
1 parent c01b99a commit d388977
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions finality-provider/cmd/fpd/daemon/daemon_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import (
"encoding/hex"
"encoding/json"
"fmt"
"github.com/babylonlabs-io/finality-provider/finality-provider/proto"
fpversion "github.com/babylonlabs-io/finality-provider/version"
"strconv"
"strings"

"github.com/babylonlabs-io/finality-provider/finality-provider/proto"
fpversion "github.com/babylonlabs-io/finality-provider/version"

"cosmossdk.io/math"
"github.com/babylonlabs-io/babylon/types"
bbntypes "github.com/babylonlabs-io/babylon/types"
Expand Down Expand Up @@ -429,6 +430,7 @@ func runCommandAddFinalitySig(cmd *cobra.Command, args []string) error {
return err
}
defer func() {
fmt.Printf("start to clean up")
if err := cleanUp(); err != nil {
fmt.Printf("Failed to clean up grpc client: %v\n", err)
}
Expand Down

0 comments on commit d388977

Please sign in to comment.