@@ -35,7 +35,6 @@ use crate::ln::ChannelId;
35
35
use crate :: sign:: ecdsa:: WriteableEcdsaChannelSigner ;
36
36
use crate :: events;
37
37
use crate :: events:: { Event , EventHandler } ;
38
- use crate :: util:: atomic_counter:: AtomicCounter ;
39
38
use crate :: util:: logger:: { Logger , WithContext } ;
40
39
use crate :: util:: errors:: APIError ;
41
40
use crate :: util:: wakers:: { Future , Notifier } ;
@@ -222,10 +221,6 @@ pub struct ChainMonitor<ChannelSigner: WriteableEcdsaChannelSigner, C: Deref, T:
222
221
P :: Target : Persist < ChannelSigner > ,
223
222
{
224
223
monitors : RwLock < HashMap < OutPoint , MonitorHolder < ChannelSigner > > > ,
225
- /// When we generate a [`MonitorUpdateId`] for a chain-event monitor persistence, we need a
226
- /// unique ID, which we calculate by simply getting the next value from this counter. Note that
227
- /// the ID is never persisted so it's ok that they reset on restart.
228
- sync_persistence_id : AtomicCounter ,
229
224
chain_source : Option < C > ,
230
225
broadcaster : T ,
231
226
logger : L ,
@@ -354,7 +349,6 @@ where C::Target: chain::Filter,
354
349
pub fn new ( chain_source : Option < C > , broadcaster : T , logger : L , feeest : F , persister : P ) -> Self {
355
350
Self {
356
351
monitors : RwLock :: new ( new_hash_map ( ) ) ,
357
- sync_persistence_id : AtomicCounter :: new ( ) ,
358
352
chain_source,
359
353
broadcaster,
360
354
logger,
0 commit comments