Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
re6stnet
Commits
19f6cacc
Commit
19f6cacc
authored
Oct 09, 2014
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
registry: fix condition to decide when to refresh list of peers
parent
5d157c4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
re6st/registry.py
re6st/registry.py
+1
-1
No files found.
re6st/registry.py
View file @
19f6cacc
...
@@ -313,7 +313,7 @@ class RegistryServer(object):
...
@@ -313,7 +313,7 @@ class RegistryServer(object):
with
self
.
lock
:
with
self
.
lock
:
cert
=
self
.
_getCert
(
cn
)
cert
=
self
.
_getCert
(
cn
)
age
,
peers
=
self
.
_peers
age
,
peers
=
self
.
_peers
if
time
.
time
()
<
age
or
not
peers
:
if
age
<
time
.
time
()
or
not
peers
:
peers
=
[
x
[
1
]
for
x
in
utils
.
iterRoutes
(
self
.
network
)]
peers
=
[
x
[
1
]
for
x
in
utils
.
iterRoutes
(
self
.
network
)]
random
.
shuffle
(
peers
)
random
.
shuffle
(
peers
)
self
.
_peers
=
time
.
time
()
+
60
,
peers
self
.
_peers
=
time
.
time
()
+
60
,
peers
...
...
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