Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coolamqp
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
coolamqp
Commits
23cfb8ad
Commit
23cfb8ad
authored
8 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
go timestamp them yourself
parent
17726db5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
coolamqp/clustering/events.py
+2
-11
2 additions, 11 deletions
coolamqp/clustering/events.py
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
3 additions
and
12 deletions
coolamqp/clustering/events.py
+
2
−
11
View file @
23cfb8ad
...
@@ -19,20 +19,12 @@ class Event(object):
...
@@ -19,20 +19,12 @@ class Event(object):
An event emitted by Cluster
An event emitted by Cluster
"""
"""
class
Timestamped
(
Event
):
"""
Notes the time of the event (as result of .monotonic)
"""
def
__init__
(
self
):
super
(
Timestamped
,
self
).
__init__
()
self
.
ts
=
monotonic
.
monotonic
()
class
NothingMuch
(
Event
):
class
NothingMuch
(
Event
):
"""
Nothing happened :D
"""
"""
Nothing happened :D
"""
class
ConnectionLost
(
Timestamped
):
class
ConnectionLost
(
Event
):
"""
"""
We have lost the connection.
We have lost the connection.
...
@@ -45,7 +37,7 @@ class ConnectionLost(Timestamped):
...
@@ -45,7 +37,7 @@ class ConnectionLost(Timestamped):
"""
"""
class
MessageReceived
(
ReceivedMessage
,
Timestamped
):
class
MessageReceived
(
ReceivedMessage
,
Event
):
"""
"""
Something that works as an ersatz ReceivedMessage, but is an event
Something that works as an ersatz ReceivedMessage, but is an event
"""
"""
...
@@ -54,4 +46,3 @@ class MessageReceived(ReceivedMessage, Timestamped):
...
@@ -54,4 +46,3 @@ class MessageReceived(ReceivedMessage, Timestamped):
ReceivedMessage
.
__init__
(
self
,
msg
.
body
,
msg
.
exchange_name
,
msg
.
routing_key
,
ReceivedMessage
.
__init__
(
self
,
msg
.
body
,
msg
.
exchange_name
,
msg
.
routing_key
,
properties
=
msg
.
properties
,
delivery_tag
=
msg
.
delivery_tag
,
properties
=
msg
.
properties
,
delivery_tag
=
msg
.
delivery_tag
,
ack
=
msg
.
ack
,
nack
=
msg
.
nack
)
ack
=
msg
.
ack
,
nack
=
msg
.
nack
)
Timestamped
.
__init__
(
self
)
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
23cfb8ad
...
@@ -5,7 +5,7 @@ from setuptools import setup
...
@@ -5,7 +5,7 @@ from setuptools import setup
setup
(
name
=
u
'
CoolAMQP
'
,
setup
(
name
=
u
'
CoolAMQP
'
,
version
=
'
0.89
'
,
version
=
'
0.89
'
,
description
=
u
'
The
fast
est
AMQP client
'
,
description
=
u
'
Very
fast
pure-Python
AMQP client
'
,
author
=
u
'
DMS Serwis s.c.
'
,
author
=
u
'
DMS Serwis s.c.
'
,
author_email
=
u
'
piotrm@smok.co
'
,
author_email
=
u
'
piotrm@smok.co
'
,
url
=
u
'
https://github.com/smok-serwis/coolamqp
'
,
url
=
u
'
https://github.com/smok-serwis/coolamqp
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment