File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
async_substrate_interface/utils Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 44import sqlite3
55import asyncstdlib as a
66
7- CACHE_LOCATION = os .path .expanduser ("~/.cache/async-substrate_interface" ) if os .getenv ("NO_CACHE" ) != "1" else ":memory:"
7+ CACHE_LOCATION = (
8+ os .path .expanduser ("~/.cache/async-substrate_interface" )
9+ if os .getenv ("NO_CACHE" ) != "1"
10+ else ":memory:"
11+ )
812
913
1014def _get_table_name (func ):
@@ -55,7 +59,7 @@ def sql_lru_cache(func, max_size=None):
5559 def inner (self , * args , ** kwargs ):
5660 c = conn .cursor ()
5761 key = pickle .dumps ((args , kwargs ))
58- chain = self ._chain
62+ chain = self .url
5963
6064 result = _retrieve_from_cache (c , table_name , key , chain )
6165 if result is not None :
@@ -79,7 +83,7 @@ def async_sql_lru_cache(func, max_size=None):
7983 async def inner (self , * args , ** kwargs ):
8084 c = conn .cursor ()
8185 key = pickle .dumps ((args , kwargs ))
82- chain = self ._chain
86+ chain = self .url
8387
8488 result = _retrieve_from_cache (c , table_name , key , chain )
8589 if result is not None :
You can’t perform that action at this time.
0 commit comments