Skip to content

Commit

Permalink
Several old configuration options are ignored.
Browse files Browse the repository at this point in the history
We'll eventially deprecate the old zeo configuration, as it's
implemented in the wrong package. :) A new implementation will provide
poll-interval, however, there's not much point in configuring that.
  • Loading branch information
Jim Fulton committed May 27, 2016
1 parent 73c35ff commit eda1bb0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
1 change: 1 addition & 0 deletions src/ZEO/ClientStorage.py
Expand Up @@ -208,6 +208,7 @@ def __init__(self, addr, storage='1', cache_size=20 * MB,
)

self._is_read_only = read_only
self._read_only_fallback = read_only_fallback

self._addr = addr # For tests

Expand Down
14 changes: 0 additions & 14 deletions src/ZEO/tests/client-config.test
Expand Up @@ -26,16 +26,10 @@ The simplest client configuration specified a server address:
>>> storage._cache.maxsize
20971520
>>> storage._cache.path
>>> storage._rpc_mgr.tmin
5
>>> storage._rpc_mgr.tmax
300
>>> storage._is_read_only
False
>>> storage._read_only_fallback
False
>>> storage._drop_cache_rather_verify
False
>>> storage._blob_cache_size

>>> storage.close()
Expand All @@ -48,8 +42,6 @@ The simplest client configuration specified a server address:
... cache-size 100
... name bob
... client cache
... min-disconnect-poll 1
... max-disconnect-poll 5
... read-only true
... drop-cache-rather-verify true
... blob-cache-size 1000MB
Expand All @@ -72,16 +64,10 @@ The simplest client configuration specified a server address:
>>> storage._cache.path == os.path.abspath('cache-2.zec')
True

>>> storage._rpc_mgr.tmin
1
>>> storage._rpc_mgr.tmax
5
>>> storage._is_read_only
True
>>> storage._read_only_fallback
False
>>> storage._drop_cache_rather_verify
True
>>> storage._blob_cache_size
1048576000

Expand Down

0 comments on commit eda1bb0

Please sign in to comment.