Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
72a4a428
Commit
72a4a428
authored
Apr 05, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b26cddf9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
neo/scripts/neostorage.py
neo/scripts/neostorage.py
+0
-1
neo/tests/threaded/__init__.py
neo/tests/threaded/__init__.py
+2
-3
No files found.
neo/scripts/neostorage.py
View file @
72a4a428
...
...
@@ -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
...
...
neo/tests/threaded/__init__.py
View file @
72a4a428
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment