Skip to content

Commit

Permalink
hub: Return db errs from last payment info fetch.
Browse files Browse the repository at this point in the history
  • Loading branch information
davecgh authored and jholdstock committed Sep 12, 2023
1 parent 7344dcc commit b5098db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pool/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,11 +480,11 @@ func (h *Hub) FetchLastWorkHeight() uint32 {
func (h *Hub) FetchLastPaymentInfo() (uint32, int64, int64, error) {
height, paidOn, err := h.cfg.DB.loadLastPaymentInfo()
if err != nil {
return 0, 0, 0, nil
return 0, 0, 0, err
}
createdOn, err := h.cfg.DB.loadLastPaymentCreatedOn()
if err != nil {
return 0, 0, 0, nil
return 0, 0, 0, err
}
return height, paidOn, createdOn, nil
}
Expand Down

0 comments on commit b5098db

Please sign in to comment.