Skip to content

Commit e9ee49f

Browse files
committed
Fix for #416
An instance's id value was appended to a task name for reasons that are lost in the mists of time. Presumably it was to disambiguate tasks with the same name but different instances. However, this doesn't make sense since tasks live in namespaces unique to instances, and the disambiguation is not necessary.
1 parent 7eb7324 commit e9ee49f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

busylight/lights/taskable.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"""
33

44
import asyncio
5-
65
from typing import Any, Awaitable, Dict, Optional
76

87

@@ -45,8 +44,6 @@ def add_task(self, name: str, coroutine: Awaitable) -> asyncio.Task:
4544
except KeyError:
4645
pass
4746

48-
name += f"-{id(self)}"
49-
5047
# >py3.7, create_task takes a `name` parameter
5148
self.tasks[name] = self.event_loop.create_task(coroutine(self))
5249

0 commit comments

Comments
 (0)