Skip to content

Commit

Permalink
lots of changes to how topics, sessions and auth works, and added fan…
Browse files Browse the repository at this point in the history
…-in and fan-out benchmarks, etc
  • Loading branch information
zhenjl committed Dec 5, 2014
1 parent 0300d7d commit 3dd9e23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions puback.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ func NewPubackMessage() *PubackMessage {
return msg
}

func (this PubackMessage) String() string {
return fmt.Sprintf("%s, Packet ID=%d", this.header, this.packetId)
}

func (this *PubackMessage) Len() int {
ml := this.msglen()

Expand Down
4 changes: 2 additions & 2 deletions publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ func NewPublishMessage() *PublishMessage {
}

func (this PublishMessage) String() string {
return fmt.Sprintf("%s, Topic=%s, Packet ID=%d, Payload=%s",
this.header, this.topic, this.packetId, string(this.payload))
return fmt.Sprintf("%s, Topic=%s, Packet ID=%d, Payload=%v",
this.header, this.topic, this.packetId, this.payload)
}

// Dup returns the value specifying the duplicate delivery of a PUBLISH Control Packet.
Expand Down

0 comments on commit 3dd9e23

Please sign in to comment.