diff --git a/chain/pruned_block_dispatcher.go b/chain/pruned_block_dispatcher.go index 41fcf02840..2709e9b319 100644 --- a/chain/pruned_block_dispatcher.go +++ b/chain/pruned_block_dispatcher.go @@ -134,7 +134,7 @@ type PrunedBlockDispatcher struct { // workManager handles satisfying all of our incoming pruned block // requests. - workManager *query.WorkManager + workManager query.WorkManager // blocksQueried represents the set of pruned blocks we've been // requested to query. Each block maps to a list of clients waiting to @@ -191,7 +191,7 @@ func NewPrunedBlockDispatcher(cfg *PrunedBlockDispatcherConfig) ( peersConnected := make(chan query.Peer) return &PrunedBlockDispatcher{ cfg: *cfg, - workManager: query.New(&query.Config{ + workManager: query.NewWorkManager(&query.Config{ ConnectedPeers: func() (<-chan query.Peer, func(), error) { return peersConnected, func() {}, nil }, diff --git a/go.mod b/go.mod index d70e30c405..f88842945c 100644 --- a/go.mod +++ b/go.mod @@ -19,7 +19,7 @@ require ( github.com/jessevdk/go-flags v1.4.0 github.com/jrick/logrotate v1.0.0 github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf - github.com/lightninglabs/neutrino v0.15.0 + github.com/lightninglabs/neutrino v0.15.1-0.20230727175126-fc413d722789 github.com/lightninglabs/neutrino/cache v1.1.0 github.com/lightningnetwork/lnd/ticker v1.0.0 github.com/lightningnetwork/lnd/tlv v1.0.2 diff --git a/go.sum b/go.sum index 71aec8f2a4..9a7c5531bb 100644 --- a/go.sum +++ b/go.sum @@ -96,8 +96,8 @@ github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf h1:HZKvJUHlcXI/f/O0Avg7t8sqkPo78HFzjmeYFl6DPnc= github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf/go.mod h1:vxmQPeIQxPf6Jf9rM8R+B4rKBqLA2AjttNxkFBL2Plk= -github.com/lightninglabs/neutrino v0.15.0 h1:yr3uz36fLAq8hyM0TRUVlef1TRNoWAqpmmNlVtKUDtI= -github.com/lightninglabs/neutrino v0.15.0/go.mod h1:pmjwElN/091TErtSE9Vd5W4hpxoG2/+xlb+HoPm9Gug= +github.com/lightninglabs/neutrino v0.15.1-0.20230727175126-fc413d722789 h1:AKeX/5ab9ZLtu5ztI8D+ef+hYpp9YBjr6zmi40UsHf4= +github.com/lightninglabs/neutrino v0.15.1-0.20230727175126-fc413d722789/go.mod h1:pmjwElN/091TErtSE9Vd5W4hpxoG2/+xlb+HoPm9Gug= github.com/lightninglabs/neutrino/cache v1.1.0 h1:szZIhVabiQIsGzJjhvo76sj05Au+zVotj2M34EquGME= github.com/lightninglabs/neutrino/cache v1.1.0/go.mod h1:XJNcgdOw1LQnanGjw8Vj44CvguYA25IMKjWFZczwZuo= github.com/lightningnetwork/lnd/clock v1.0.1 h1:QQod8+m3KgqHdvVMV+2DRNNZS1GRFir8mHZYA+Z2hFo=