This commit is contained in:
Philipp Heckel 2021-11-02 14:08:21 -04:00
parent b775e6dfce
commit 67922b0ae5
8 changed files with 175 additions and 6 deletions

View file

@ -29,6 +29,7 @@ func newTopic(id string) *topic {
return &topic{
id: id,
subscribers: make(map[int]subscriber),
messages: make([]*message, 0),
last: time.Now(),
ctx: ctx,
cancel: cancel,