We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff4eef9 commit ea808ceCopy full SHA for ea808ce
nsq.go
@@ -28,7 +28,13 @@ func (c *Client) Publish(topic string, message []byte) (err error) {
28
return
29
}
30
31
-func (c *Client) MutliPublish(topic string, messages ...[]byte) (err error) {
+// MutliPublish is an alias of MultiPublish, here for backwards
32
+// compatibility.
33
+func (c *Client) MutliPublish(topic string, messages ...[]byte) error {
34
+ return c.MultiPublish(topic, messages)
35
+}
36
+
37
+func (c *Client) MultiPublish(topic string, messages ...[]byte) (err error) {
38
_, err = c.do("POST", "/mpub", url.Values{
39
"topic": []string{topic},
40
}, bytes.Join(messages, []byte("\n")))
0 commit comments