Move InMemoryConfigStorage to a separate file
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
from interfaces import ConfigStorageInterface
|
||||
|
||||
class InMemoryConfigStorage(ConfigStorageInterface):
|
||||
|
||||
def __init__(self, config_hash={}):
|
||||
self._config_hash = config_hash
|
||||
|
||||
def get(self, key):
|
||||
try:
|
||||
return self._config_hash[key]
|
||||
except KeyError:
|
||||
return None
|
||||
@@ -13,18 +13,6 @@ class InDbServerConfigStorage(ConfigStorageInterface):
|
||||
else:
|
||||
return None
|
||||
|
||||
|
||||
class InMemoryConfigStorage(ConfigStorageInterface):
|
||||
|
||||
def __init__(self, config_hash={}):
|
||||
self._config_hash = config_hash
|
||||
|
||||
def get(self, key):
|
||||
try:
|
||||
return self._config_hash[key]
|
||||
except KeyError:
|
||||
return None
|
||||
|
||||
class NullConfigStorage(ConfigStorageInterface):
|
||||
|
||||
def get(self, key):
|
||||
|
||||
Reference in New Issue
Block a user