Skip to content

Commit

Permalink
fixed minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
heavycrystal committed Mar 6, 2024
1 parent 7267370 commit a5099c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flow/cmd/peer_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ func (h *FlowRequestHandler) getSFPeerConfig(ctx context.Context, peerName strin
}

unmarshalErr := proto.Unmarshal(sfPeerOptions, &sfPeerConfig)
if err != nil {
return nil, unmarshalErr
if unmarshalErr != nil {
return nil, fmt.Errorf("failed to unmarshal protobuf: %w", unmarshalErr)
}

return &sfPeerConfig, nil
Expand Down

0 comments on commit a5099c3

Please sign in to comment.