summaryrefslogtreecommitdiff
path: root/events/init.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-01-15 12:08:20 +0300
committerValery Piashchynski <[email protected]>2022-01-15 12:08:20 +0300
commit5254c8eb27311e2a8a53a4c90c3829cf1238c563 (patch)
treeb51c9a4c1dd4c25adc511498ce0380a7078c5572 /events/init.go
parent13609dd03dd0d2fa85b9fb850be787bf4e2ea67f (diff)
Repository content update
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'events/init.go')
-rw-r--r--events/init.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/events/init.go b/events/init.go
deleted file mode 100644
index 25e92fc5..00000000
--- a/events/init.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package events
-
-import (
- "sync"
-
- "github.com/google/uuid"
-)
-
-var evBus *eventsBus
-var onInit = &sync.Once{}
-
-func Bus() (*eventsBus, string) {
- onInit.Do(func() {
- evBus = newEventsBus()
- go evBus.handleEvents()
- })
-
- // return events bus with subscriberID
- return evBus, uuid.NewString()
-}