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 85a983c commit b8f4d47
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 b8f4d47

Please sign in to comment.