Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sébastien DA ROCHA
sakia
Commits
c6053a49
Commit
c6053a49
authored
8 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Clean close session
parent
ed35aef3
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sakia/data/connectors/bma.py
+1
-1
1 addition, 1 deletion
src/sakia/data/connectors/bma.py
src/sakia/services/network.py
+5
-5
5 additions, 5 deletions
src/sakia/services/network.py
with
6 additions
and
6 deletions
src/sakia/data/connectors/bma.py
+
1
−
1
View file @
c6053a49
...
@@ -215,7 +215,7 @@ class BmaConnector:
...
@@ -215,7 +215,7 @@ class BmaConnector:
else
:
else
:
answers
[
data_hash
].
append
(
node
)
answers
[
data_hash
].
append
(
node
)
finally
:
finally
:
session
.
close
()
await
session
.
close
()
if
len
(
answers_data
)
>
0
:
if
len
(
answers_data
)
>
0
:
if
request
is
bma
.
wot
.
lookup
:
if
request
is
bma
.
wot
.
lookup
:
...
...
This diff is collapsed.
Click to expand it.
src/sakia/services/network.py
+
5
−
5
View file @
c6053a49
...
@@ -3,7 +3,7 @@ import logging
...
@@ -3,7 +3,7 @@ import logging
import
time
import
time
from
collections
import
Counter
from
collections
import
Counter
from
PyQt5.QtCore
import
pyqtSignal
,
pyqtSlot
,
QObject
from
PyQt5.QtCore
import
pyqtSignal
,
pyqtSlot
,
QObject
,
Qt
from
duniterpy.api
import
errors
from
duniterpy.api
import
errors
from
duniterpy.key
import
VerifyingKey
from
duniterpy.key
import
VerifyingKey
from
sakia.data.connectors
import
NodeConnector
from
sakia.data.connectors
import
NodeConnector
...
@@ -167,10 +167,10 @@ class NetworkService(QObject):
...
@@ -167,10 +167,10 @@ class NetworkService(QObject):
Add a nod to the network.
Add a nod to the network.
"""
"""
self
.
_connectors
.
append
(
node_connector
)
self
.
_connectors
.
append
(
node_connector
)
node_connector
.
changed
.
connect
(
self
.
handle_change
)
node_connector
.
changed
.
connect
(
self
.
handle_change
,
type
=
Qt
.
UniqueConnection
|
Qt
.
QueuedConnection
)
node_connector
.
error
.
connect
(
self
.
handle_error
)
node_connector
.
error
.
connect
(
self
.
handle_error
,
type
=
Qt
.
UniqueConnection
|
Qt
.
QueuedConnection
)
node_connector
.
identity_changed
.
connect
(
self
.
handle_identity_change
)
node_connector
.
identity_changed
.
connect
(
self
.
handle_identity_change
,
type
=
Qt
.
UniqueConnection
|
Qt
.
QueuedConnection
)
node_connector
.
neighbour_found
.
connect
(
self
.
handle_new_node
)
node_connector
.
neighbour_found
.
connect
(
self
.
handle_new_node
,
type
=
Qt
.
UniqueConnection
|
Qt
.
QueuedConnection
)
self
.
_logger
.
debug
(
"
{:} connected
"
.
format
(
node_connector
.
node
.
pubkey
[:
5
]))
self
.
_logger
.
debug
(
"
{:} connected
"
.
format
(
node_connector
.
node
.
pubkey
[:
5
]))
@asyncify
@asyncify
...
...
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