Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
chennqqi committed Dec 11, 2017
1 parent 6cc5bcc commit cdcfb77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nsqout/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ func (c *client) buildNsqMessages(events []publisher.Event) ([][]byte, error) {
err = nerr
} else {
//should copy, see https://blog.golang.org/go-slices-usage-and-internals
tmp := (serializedEvent)
tmp := string(serializedEvent)
//logp.Info("main:nsq] BuildMessage: %v", string(serializedEvent))
msgs[count] = (tmp)
msgs[count] = []byte(tmp)
count++
}
}
Expand Down

0 comments on commit cdcfb77

Please sign in to comment.