Skip to content

Commit 9b50000

Browse files
committed
simply closing cache boxes won't play nice with concurrency so we'll need to settle on just opening them as needed
(cherry picked from commit a509dc4)
1 parent bcf5d9a commit 9b50000

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

lib/electrumx_rpc/cached_electrumx.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ class CachedElectrumX {
9393
"Failed to process CachedElectrumX.getAnonymitySet(): $e\n$s",
9494
level: LogLevel.Error);
9595
rethrow;
96-
} finally {
97-
await DB.instance.closeAnonymitySetCacheBox(coin: coin);
9896
}
9997
}
10098

@@ -144,8 +142,6 @@ class CachedElectrumX {
144142
"Failed to process CachedElectrumX.getTransaction(): $e\n$s",
145143
level: LogLevel.Error);
146144
rethrow;
147-
} finally {
148-
await DB.instance.closeTxCacheBox(coin: coin);
149145
}
150146
}
151147

@@ -187,8 +183,6 @@ class CachedElectrumX {
187183
"Failed to process CachedElectrumX.getTransaction(): $e\n$s",
188184
level: LogLevel.Error);
189185
rethrow;
190-
} finally {
191-
await DB.instance.closeUsedSerialsCacheBox(coin: coin);
192186
}
193187
}
194188

0 commit comments

Comments
 (0)