Commit 72a4a428 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b26cddf9
......@@ -57,7 +57,6 @@ def main(args=None):
config = ConfigurationManager(defaults, options, 'storage')
# setup custom logging
# logging.backlog(max_size=None) # log without delay
logging.setup(config.getLogfile())
# and then, load and run the application
......
......@@ -230,7 +230,6 @@ class Serialized(object):
self._busy.add(self) # block tic until app waits for polling
def __getattr__(self, attr):
# to original .app.epoll.xxx(
if attr in ('close', 'modify', 'register', 'unregister'):
return getattr(self._epoll, attr)
return self.__getattribute__(attr)
......@@ -323,7 +322,7 @@ class ServerNode(Node):
@classmethod
def newAddress(cls):
address = cls._virtual_ip, len(cls._node_list) # NOTE addr is vip, #node
address = cls._virtual_ip, len(cls._node_list) # NOTE addr is (vip, #node)
cls._node_list.append(None)
return address
......@@ -505,7 +504,7 @@ class ConnectionFilter(object):
_addPacket = Connection._addPacket
@contextmanager
def __new__(cls, conn_list=()): # NOTE conn_list=() -> for all connections
def __new__(cls, conn_list=()): # NOTE conn_list=() means "for all connections"
self = object.__new__(cls)
self.filter_dict = {}
self.conn_list = frozenset(conn_list)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment