Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Iliya Manolov
neoppod
Commits
2114e6db
Commit
2114e6db
authored
Oct 26, 2011
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused Barrier packet
parent
9d8081f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
20 deletions
+1
-20
neo/client/app.py
neo/client/app.py
+0
-3
neo/lib/handler.py
neo/lib/handler.py
+0
-6
neo/lib/protocol.py
neo/lib/protocol.py
+1
-11
No files found.
neo/client/app.py
View file @
2114e6db
...
@@ -1058,9 +1058,6 @@ class Application(object):
...
@@ -1058,9 +1058,6 @@ class Application(object):
psThreadedPoll
()
psThreadedPoll
()
close
=
__del__
close
=
__del__
def
invalidationBarrier
(
self
):
self
.
_askPrimary
(
Packets
.
AskBarrier
())
def
pack
(
self
,
t
):
def
pack
(
self
,
t
):
tid
=
repr
(
TimeStamp
(
*
time
.
gmtime
(
t
)[:
5
]
+
(
t
%
60
,
)))
tid
=
repr
(
TimeStamp
(
*
time
.
gmtime
(
t
)[:
5
]
+
(
t
%
60
,
)))
if
tid
==
ZERO_TID
:
if
tid
==
ZERO_TID
:
...
...
neo/lib/handler.py
View file @
2114e6db
...
@@ -133,12 +133,6 @@ class EventHandler(object):
...
@@ -133,12 +133,6 @@ class EventHandler(object):
def
notify
(
self
,
conn
,
message
):
def
notify
(
self
,
conn
,
message
):
neo
.
lib
.
logging
.
info
(
'notification from %r: %s'
,
conn
,
message
)
neo
.
lib
.
logging
.
info
(
'notification from %r: %s'
,
conn
,
message
)
def
askBarrier
(
self
,
conn
):
conn
.
answer
(
Packets
.
AnswerBarrier
())
def
answerBarrier
(
self
,
conn
):
pass
# Error packet handlers.
# Error packet handlers.
def
error
(
self
,
conn
,
code
,
message
):
def
error
(
self
,
conn
,
code
,
message
):
...
...
neo/lib/protocol.py
View file @
2114e6db
...
@@ -1245,15 +1245,6 @@ class CheckCurrentSerial(Packet):
...
@@ -1245,15 +1245,6 @@ class CheckCurrentSerial(Packet):
PTID
(
'serial'
),
PTID
(
'serial'
),
)
)
class
Barrier
(
Packet
):
"""
Initates a "network barrier", allowing the node sending this packet to know
when all packets sent previously on the same connection have been handled
by its peer.
"""
_answer
=
PFEmpty
class
Pack
(
Packet
):
class
Pack
(
Packet
):
"""
"""
Request a pack at given TID.
Request a pack at given TID.
...
@@ -1525,8 +1516,7 @@ class Packets(dict):
...
@@ -1525,8 +1516,7 @@ class Packets(dict):
0x002B
,
TIDListFrom
)
0x002B
,
TIDListFrom
)
AskObjectHistoryFrom
,
AnswerObjectHistoryFrom
=
register
(
AskObjectHistoryFrom
,
AnswerObjectHistoryFrom
=
register
(
0x002C
,
ObjectHistoryFrom
)
0x002C
,
ObjectHistoryFrom
)
AskBarrier
,
AnswerBarrier
=
register
(
# 2D
0x002D
,
Barrier
)
AskPack
,
AnswerPack
=
register
(
AskPack
,
AnswerPack
=
register
(
0x002E
,
Pack
,
ignore_when_closed
=
False
)
0x002E
,
Pack
,
ignore_when_closed
=
False
)
AskCheckTIDRange
,
AnswerCheckTIDRange
=
register
(
AskCheckTIDRange
,
AnswerCheckTIDRange
=
register
(
...
...
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