Skip to content

Commit

Permalink
defer connector close
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Dec 11, 2023
1 parent be31624 commit 0cc39cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flow/cmd/peer_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ func (h *FlowRequestHandler) GetSlotInfo(
if err != nil {
return &protos.PeerSlotResponse{SlotData: nil}, err
}
defer pgConnector.Close()

slotInfo, err := pgConnector.GetSlotInfo("")
if err != nil {
return &protos.PeerSlotResponse{SlotData: nil}, err
Expand Down

0 comments on commit 0cc39cc

Please sign in to comment.