Skip to content

Commit

Permalink
Add receipt handling to the ACK handler helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmallard committed Aug 3, 2016
1 parent f020053 commit c9880e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions sngecomm/utilities.go
Expand Up @@ -208,6 +208,9 @@ func HandleAck(c *stompngo.Connection, h stompngo.Headers, id string) {
default:
llu.Fatalf("v1:%v v2:%v\n", "ack invalid protocol level, should not happen")
}
if cv, ok := h.Contains(stompngo.HK_RECEIPT); ok {
ah = ah.Add(stompngo.HK_RECEIPT, cv)
}
e := c.Ack(ah)
if e != nil {
llu.Fatalf("v1:%v v2:%v v3:%v\n", "ack failed", e, c.Protocol())
Expand Down
2 changes: 1 addition & 1 deletion version.go
Expand Up @@ -35,7 +35,7 @@ var (

//patch = "4" // Patch

patch = "4.plvl.002" // Patch
patch = "4.plvl.003" // Patch
)

func Version() string {
Expand Down

0 comments on commit c9880e8

Please sign in to comment.