Skip to content

Commit

Permalink
Merge pull request #92 from haiwen/fix-redis-cache-max-connections
Browse files Browse the repository at this point in the history
Update objstore_factory.py
  • Loading branch information
freeplant authored Jan 6, 2025
2 parents 14feeb1 + d95f052 commit 2b48848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seafobj/objstore_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def get_seaf_cache(self):
max_connections = self.cfg.get('redis', 'max_connections')
else:
max_connections = 20
return get_redis_cache(host, port, expiry, max_connections)
return get_redis_cache(host, port, expiry, int(max_connections))

if self.cfg.has_option('memcached', 'memcached_options'):
mc_options = self.cfg.get('memcached', 'memcached_options')
Expand Down

0 comments on commit 2b48848

Please sign in to comment.