Skip to content

Commit 59012e0

Browse files
committed
don't break public interface
1 parent 59239fc commit 59012e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,10 @@ func (srv *Server) PublishWithAcknowledgment(channels []string, ev Event) <-chan
241241
}
242242

243243
// PublishComment publishes a comment to one or more channels.
244-
func (srv *Server) PublishComment(channels []string, text Comment) {
244+
func (srv *Server) PublishComment(channels []string, text string) {
245245
srv.pub <- &outbound{
246246
channels: channels,
247-
eventOrComment: text,
247+
eventOrComment: Comment(text),
248248
}
249249
}
250250

0 commit comments

Comments
 (0)