We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56861b7 commit ed3e5cbCopy full SHA for ed3e5cb
main.go
@@ -61,11 +61,13 @@ func main() {
61
}
62
63
// our internal change log
64
- changelog.Broadcast(Change{
65
- Namespace: ctx["db"].(string),
66
- Command: todo,
67
- Arguments: args,
68
- }, defaultPubSubAllTopic)
+ if changelog.Subscribers(defaultPubSubAllTopic) > 0 {
+ changelog.Broadcast(Change{
+ Namespace: ctx["db"].(string),
+ Command: todo,
+ Arguments: args,
69
+ }, defaultPubSubAllTopic)
70
+ }
71
72
// internal ping-pong
73
if todo == "ping" {
0 commit comments