Skip to content

Commit c6b1e47

Browse files
committed
Code quality
- also missed a necessary dependency injection in Qt frontend
1 parent 1846d68 commit c6b1e47

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/bitmessageqt/settings.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def accept(self):
414414
'bitmessagesettings', 'udp'):
415415
self.config.set('bitmessagesettings', 'udp', str(udp_enabled))
416416
if udp_enabled:
417-
announceThread = AnnounceThread()
417+
announceThread = AnnounceThread(connectionpool.pool)
418418
announceThread.daemon = True
419419
announceThread.start()
420420
else:

‎src/network/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
__all__ = ["StoppableThread"]
1818

1919

20-
def start(config, state):
20+
def start(config, state): # pylint: disable=too-many-locals
2121
"""Start network threads"""
2222
from .announcethread import AnnounceThread
2323
from . import connectionpool

‎src/network/objectracker.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def handleReceivedInventory(self, hashId):
9999

100100
def handleReceivedObject(self, streamNumber, hashid):
101101
"""Handling received object"""
102-
for i in self.pool.connections():
102+
for i in self.pool.connections(): # pylint: disable=no-member
103103
if not i.fullyEstablished:
104104
continue
105105
try:

0 commit comments

Comments
 (0)