Skip to content

Commit

Permalink
pubsub fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iesreza committed Dec 6, 2023
1 parent 50b69e7 commit 9377668
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/pubsub/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,14 @@ func AddDriver(driver Interface) {
func Subscribe(topic string, onMessage func(topic string, message []byte, driver Interface), params ...any) {
defaultDriver.Subscribe(topic, onMessage, params...)
}
func Publish(topic string, message []byte, params ...any) error {
func Publish(topic string, message any, params ...any) error {
return defaultDriver.Publish(topic, message, params...)
}

func PublishBytes(topic string, message []byte, params ...any) error {
return defaultDriver.PublishBytes(topic, message, params...)
}

func SetPrefix(s string) {
defaultDriver.SetPrefix(s)
}
Expand Down

0 comments on commit 9377668

Please sign in to comment.