Skip to content

Commit

Permalink
fix: Restore interval as optional parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Maggio committed Jul 30, 2022
1 parent 9dceffc commit 5959052
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pythonping/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def ping(target,
break


comm = executor.Communicator(target, provider, timeout, socket_options=options, verbose=verbose, output=out,
comm = executor.Communicator(target, provider, timeout, interval, socket_options=options, verbose=verbose, output=out,
seed_id=seed_id, source=source, repr_format=out_format)

comm.run(match_payloads=match)
Expand Down
2 changes: 1 addition & 1 deletion pythonping/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def __iter__(self):

class Communicator:
"""Instance actually communicating over the network, sending messages and handling responses"""
def __init__(self, target, payload_provider, timeout, socket_options=(), seed_id=None,
def __init__(self, target, payload_provider, timeout, interval, socket_options=(), seed_id=None,
verbose=False, output=sys.stdout, source=None, repr_format=None):
"""Creates an instance that can handle communication with the target device
Expand Down

0 comments on commit 5959052

Please sign in to comment.