Skip to content

Commit a47e2f2

Browse files
committed
fix: generic pubsub
1 parent ce434db commit a47e2f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pubsub/publisher.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ func (p *publisher) publish(body []byte, delay time.Duration) error {
5252
}
5353

5454
// PublishWithDelay ...
55-
func (p *publisher) PublishWithDelay(queueName string, body []byte, delay time.Duration) error {
55+
func (p *publisher) PublishWithDelay(body []byte, delay time.Duration) error {
5656
return p.publish(body, delay)
5757
}
5858

5959
// Publish ...
60-
func (p *publisher) Publish(queueName string, body []byte) error {
60+
func (p *publisher) Publish(body []byte) error {
6161
return p.publish(body, 0)
6262
}

0 commit comments

Comments
 (0)