File tree 2 files changed +5
-11
lines changed
2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @magiceden-oss/runestone-lib" ,
3
- "version" : " 0.9.2 -alpha" ,
3
+ "version" : " 0.9.3 -alpha" ,
4
4
"description" : " " ,
5
5
"main" : " ./dist/index.js" ,
6
6
"types" : " ./dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ export class RunestoneIndexer {
13
13
private readonly _network : Network ;
14
14
15
15
private _started : boolean = false ;
16
- private _updateInProgress : Promise < void > | null = null ;
17
- private _intervalId : NodeJS . Timeout | null = null ;
16
+ private _updateInProgress : boolean = false ;
18
17
19
18
constructor ( options : RunestoneIndexerOptions ) {
20
19
this . _rpc = options . bitcoinRpcClient ;
@@ -51,11 +50,6 @@ export class RunestoneIndexer {
51
50
return ;
52
51
}
53
52
54
- if ( this . _intervalId !== null ) {
55
- clearInterval ( this . _intervalId ) ;
56
- this . _intervalId = null ;
57
- }
58
-
59
53
await this . _storage . disconnect ( ) ;
60
54
this . _started = false ;
61
55
}
@@ -69,11 +63,11 @@ export class RunestoneIndexer {
69
63
return ;
70
64
}
71
65
72
- this . _updateInProgress = this . updateRuneUtxoBalancesImpl ( ) ;
66
+ this . _updateInProgress = true ;
73
67
try {
74
- await this . _updateInProgress ;
68
+ await this . updateRuneUtxoBalancesImpl ( ) ;
75
69
} finally {
76
- this . _updateInProgress = null ;
70
+ this . _updateInProgress = false ;
77
71
}
78
72
}
79
73
You can’t perform that action at this time.
0 commit comments