Skip to content

Commit

Permalink
Fix typo and logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Feb 3, 2025
1 parent e6bb27f commit 490e77e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions posttroll/backends/zmq/ns.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import logging
from contextlib import suppress
from threading import Lock
from typing import Any, Mapping
from urllib.parse import urlsplit

from zmq import LINGER, REP, REQ
Expand Down Expand Up @@ -87,7 +86,7 @@ def __init__(self):
self.listener:SocketReceiver|None = None
self._authenticator = None

def run(self, address_receiver:Mapping[Any, Any], address:str|None=None):
def run(self, address_receiver, address:str|None=None):
"""Run the listener and answer to requests."""
port = get_configured_nameserver_port()

Expand Down
2 changes: 1 addition & 1 deletion posttroll/bbmcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def __init__(self, port, mcgroup=None):
# Note: a multicast receiver will also receive broadcast on same port.
self.port = port
self.socket, self.group = mcast_receiver(port, mcgroup)
logger.info("Receiver initialized.")
logger.info(f"Receiver initialized on group {self.group}.")

def settimeout(self, tout=None):
"""Set timeout.
Expand Down
2 changes: 1 addition & 1 deletion posttroll/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class MessageError(Exception):

# -----------------------------------------------------------------------------
#
# Utillities.
# Utilities.
#
# -----------------------------------------------------------------------------

Expand Down

0 comments on commit 490e77e

Please sign in to comment.