simply closing cache boxes won't play nice with concurrency so we'll need to settle on just opening them as needed

This commit is contained in:
julian 2023-07-03 16:38:43 -06:00
parent b7b43e3380
commit a509dc40ea

View file

@ -103,8 +103,6 @@ class CachedElectrumX {
"Failed to process CachedElectrumX.getAnonymitySet(): $e\n$s", "Failed to process CachedElectrumX.getAnonymitySet(): $e\n$s",
level: LogLevel.Error); level: LogLevel.Error);
rethrow; rethrow;
} finally {
await DB.instance.closeAnonymitySetCacheBox(coin: coin);
} }
} }
@ -154,8 +152,6 @@ class CachedElectrumX {
"Failed to process CachedElectrumX.getTransaction(): $e\n$s", "Failed to process CachedElectrumX.getTransaction(): $e\n$s",
level: LogLevel.Error); level: LogLevel.Error);
rethrow; rethrow;
} finally {
await DB.instance.closeTxCacheBox(coin: coin);
} }
} }
@ -197,8 +193,6 @@ class CachedElectrumX {
"Failed to process CachedElectrumX.getTransaction(): $e\n$s", "Failed to process CachedElectrumX.getTransaction(): $e\n$s",
level: LogLevel.Error); level: LogLevel.Error);
rethrow; rethrow;
} finally {
await DB.instance.closeUsedSerialsCacheBox(coin: coin);
} }
} }