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
f42aec50
Commit
f42aec50
authored
8 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
heh travis rmq
parent
8a2918a8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
coolamqp/clustering/single.py
+1
-0
1 addition, 0 deletions
coolamqp/clustering/single.py
tests/run.py
+1
-1
1 addition, 1 deletion
tests/run.py
tests/test_clustering/test_a.py
+2
-2
2 additions, 2 deletions
tests/test_clustering/test_a.py
with
4 additions
and
3 deletions
coolamqp/clustering/single.py
+
1
−
0
View file @
f42aec50
...
@@ -43,6 +43,7 @@ class SingleNodeReconnector(object):
...
@@ -43,6 +43,7 @@ class SingleNodeReconnector(object):
def
shutdown
(
self
):
def
shutdown
(
self
):
"""
Close this connection
"""
"""
Close this connection
"""
self
.
terminating
=
True
self
.
terminating
=
True
if
self
.
connection
is
not
None
:
if
self
.
connection
is
not
None
:
self
.
connection
.
send
(
None
)
self
.
connection
.
send
(
None
)
self
.
connection
=
None
self
.
connection
=
None
This diff is collapsed.
Click to expand it.
tests/run.py
+
1
−
1
View file @
f42aec50
...
@@ -7,7 +7,7 @@ from coolamqp.clustering import Cluster
...
@@ -7,7 +7,7 @@ from coolamqp.clustering import Cluster
import
time
import
time
NODE
=
NodeDefinition
(
'
127.0.0.1
'
,
'
user
'
,
'
user
'
,
heartbeat
=
20
)
NODE
=
NodeDefinition
(
'
127.0.0.1
'
,
'
guest
'
,
'
guest
'
,
heartbeat
=
20
)
logging
.
basicConfig
(
level
=
logging
.
DEBUG
)
logging
.
basicConfig
(
level
=
logging
.
DEBUG
)
if
__name__
==
'
__main__
'
:
if
__name__
==
'
__main__
'
:
...
...
This diff is collapsed.
Click to expand it.
tests/test_clustering/test_a.py
+
2
−
2
View file @
f42aec50
...
@@ -11,8 +11,8 @@ from coolamqp.clustering import Cluster
...
@@ -11,8 +11,8 @@ from coolamqp.clustering import Cluster
import
time
import
time
#todo handle bad auth
NODE
=
NodeDefinition
(
'
127.0.0.1
'
,
'
user
'
,
'
user
'
,
heartbeat
=
20
)
NODE
=
NodeDefinition
(
'
127.0.0.1
'
,
'
guest
'
,
'
guest
'
,
heartbeat
=
20
)
logging
.
basicConfig
(
level
=
logging
.
DEBUG
)
logging
.
basicConfig
(
level
=
logging
.
DEBUG
)
...
...
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