Skip to content

Commit f8056b0

Browse files
authored
Merge pull request #133 from dogecoinfoundation/fix-shutdown
Fix: shut down cleanly, remove unused service stubs
2 parents 6224b66 + 580358f commit f8056b0

File tree

4 files changed

+1
-104
lines changed

4 files changed

+1
-104
lines changed

pkg/services/balancekeeper.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ func (b BalanceKeeper) Run(started, stopped chan bool, stop chan context.Context
4242
defer func() {
4343
if r := recover(); r != nil {
4444
log.Println("BalanceKeeper: panic received:", r)
45+
stopped <- true
4546
}
4647
if b.tx != nil {
4748
// shutdown during a transaction.

pkg/services/invoicestamper.go

Lines changed: 0 additions & 48 deletions
This file was deleted.

pkg/services/main.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,4 @@ func StartServices(cond *conductor.Conductor, bus giga.MessageBus, conf giga.Con
99
// BalanceKeeper updates stored balances and sends ACC_BALANCE_CHANGE events.
1010
keeper := NewBalanceKeeper(store, bus)
1111
cond.Service("NewBalanceKeeper", keeper)
12-
13-
// InvoiceStamper sends "Invoice Paid" and "Invoice Partial Payment" events.
14-
stamper := NewInvoiceStamper()
15-
cond.Service("InvoiceStamper", stamper)
16-
17-
// PayMaster sends "Payment Accepted" and "Payment Confirmed" events.
18-
master := NewPayMaster()
19-
cond.Service("PayMaster", master)
2012
}

pkg/services/paymaster.go

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)