@@ -11,8 +11,8 @@ import (
11
11
"github.com/btcsuite/btcd/wire"
12
12
"github.com/lightninglabs/lndclient"
13
13
"github.com/lightninglabs/taproot-assets/asset"
14
- "github.com/lightninglabs/taproot-assets/chanutils"
15
14
"github.com/lightninglabs/taproot-assets/commitment"
15
+ "github.com/lightninglabs/taproot-assets/fn"
16
16
"github.com/lightningnetwork/lnd/keychain"
17
17
)
18
18
@@ -150,23 +150,23 @@ type Book struct {
150
150
151
151
// subscribers is a map of components that want to be notified on new
152
152
// address events, keyed by their subscription ID.
153
- subscribers map [uint64 ]* chanutils .EventReceiver [* AddrWithKeyInfo ]
153
+ subscribers map [uint64 ]* fn .EventReceiver [* AddrWithKeyInfo ]
154
154
155
155
// subscriberMtx guards the subscribers map and access to the
156
156
// subscriptionID.
157
157
subscriberMtx sync.Mutex
158
158
}
159
159
160
160
// A compile-time assertion to make sure Book satisfies the
161
- // chanutils .EventPublisher interface.
162
- var _ chanutils .EventPublisher [* AddrWithKeyInfo , QueryParams ] = (* Book )(nil )
161
+ // fn .EventPublisher interface.
162
+ var _ fn .EventPublisher [* AddrWithKeyInfo , QueryParams ] = (* Book )(nil )
163
163
164
164
// NewBook creates a new Book instance from the config.
165
165
func NewBook (cfg BookConfig ) * Book {
166
166
return & Book {
167
167
cfg : cfg ,
168
168
subscribers : make (
169
- map [uint64 ]* chanutils .EventReceiver [* AddrWithKeyInfo ],
169
+ map [uint64 ]* fn .EventReceiver [* AddrWithKeyInfo ],
170
170
),
171
171
}
172
172
}
@@ -392,7 +392,7 @@ func (b *Book) CompleteEvent(ctx context.Context, event *Event,
392
392
// marker onward existing items should be delivered on startup. If deliverFrom
393
393
// is nil/zero/empty then all existing items will be delivered.
394
394
func (b * Book ) RegisterSubscriber (
395
- receiver * chanutils .EventReceiver [* AddrWithKeyInfo ],
395
+ receiver * fn .EventReceiver [* AddrWithKeyInfo ],
396
396
deliverExisting bool , deliverFrom QueryParams ) error {
397
397
398
398
b .subscriberMtx .Lock ()
@@ -427,7 +427,7 @@ func (b *Book) RegisterSubscriber(
427
427
// RemoveSubscriber removes the given subscriber and also stops it from
428
428
// processing events.
429
429
func (b * Book ) RemoveSubscriber (
430
- subscriber * chanutils .EventReceiver [* AddrWithKeyInfo ]) error {
430
+ subscriber * fn .EventReceiver [* AddrWithKeyInfo ]) error {
431
431
432
432
b .subscriberMtx .Lock ()
433
433
defer b .subscriberMtx .Unlock ()
0 commit comments