Skip to content

Commit

Permalink
fix interface and mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
gusin13 committed Nov 11, 2024
1 parent e32848c commit 250d421
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 24 deletions.
2 changes: 1 addition & 1 deletion internal/clients/btcclient/interface.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package btcclient

type Client interface {
type BtcInterface interface {
GetTipHeight() (uint64, error)
}
4 changes: 2 additions & 2 deletions internal/services/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Service struct {

cfg *config.Config
db db.DbInterface
btc btcclient.Client
btc btcclient.BtcInterface
btcNotifier notifier.ChainNotifier
bbn bbnclient.BbnInterface
queueManager *queue.QueueManager
Expand All @@ -31,7 +31,7 @@ type Service struct {
func NewService(
cfg *config.Config,
db db.DbInterface,
btc btcclient.Client,
btc btcclient.BtcInterface,
btcNotifier notifier.ChainNotifier,
bbn bbnclient.BbnInterface,
qm *queue.QueueManager,
Expand Down
27 changes: 13 additions & 14 deletions tests/mocks/mock_bbn_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions tests/mocks/mock_btc_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 250d421

Please sign in to comment.