Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Commit c072aa1

Browse files
authored
Removing unused "extra" arguments in Pub/Sub helper thread start. (#4483)
1 parent 4374149 commit c072aa1

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

google/cloud/pubsub_v1/subscriber/_helper_threads.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,13 @@ def __init__(self):
4747
def __contains__(self, needle):
4848
return needle in self._helper_threads
4949

50-
def start(self, name, queue, target, *args, **kwargs):
50+
def start(self, name, queue, target):
5151
"""Create and start a helper thread.
5252
5353
Args:
5454
name (str): The name of the helper thread.
5555
queue (Queue): A concurrency-safe queue.
5656
target (Callable): The target of the thread.
57-
args: Additional args passed to the thread constructor.
58-
kwargs: Additional kwargs passed to the thread constructor.
5957
6058
Returns:
6159
threading.Thread: The created thread.
@@ -64,8 +62,6 @@ def start(self, name, queue, target, *args, **kwargs):
6462
thread = threading.Thread(
6563
name='Thread-ConsumerHelper-{}'.format(name),
6664
target=target,
67-
*args,
68-
**kwargs
6965
)
7066
thread.daemon = True
7167
thread.start()

0 commit comments

Comments
 (0)