You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2016/09/27 19:11:17 UTC

qpid-proton git commit: PROTON-1307: go binding amqp.message does not honor Inferred flag

Repository: qpid-proton
Updated Branches:
  refs/heads/master 4bd66a06e -> 2c438a855


PROTON-1307: go binding amqp.message does not honor Inferred flag

Applied fix provided by Richard Laos for typo in the SetInferred method.


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/2c438a85
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/2c438a85
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/2c438a85

Branch: refs/heads/master
Commit: 2c438a8554daf4526b9a7f1444fb5389a55bc1bb
Parents: 4bd66a0
Author: Alan Conway <ac...@redhat.com>
Authored: Tue Sep 27 15:03:57 2016 -0400
Committer: Alan Conway <ac...@redhat.com>
Committed: Tue Sep 27 15:05:56 2016 -0400

----------------------------------------------------------------------
 proton-c/bindings/go/src/qpid.apache.org/amqp/message.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/2c438a85/proton-c/bindings/go/src/qpid.apache.org/amqp/message.go
----------------------------------------------------------------------
diff --git a/proton-c/bindings/go/src/qpid.apache.org/amqp/message.go b/proton-c/bindings/go/src/qpid.apache.org/amqp/message.go
index 4ae36f4..48a209a 100644
--- a/proton-c/bindings/go/src/qpid.apache.org/amqp/message.go
+++ b/proton-c/bindings/go/src/qpid.apache.org/amqp/message.go
@@ -261,7 +261,7 @@ func dataString(data *C.pn_data_t) string {
 	return C.GoString(C.pn_string_get(str))
 }
 
-func (m *message) SetInferred(b bool)  { C.pn_message_set_inferred(m.pn, C.bool(m.Inferred())) }
+func (m *message) SetInferred(b bool)  { C.pn_message_set_inferred(m.pn, C.bool(b)) }
 func (m *message) SetDurable(b bool)   { C.pn_message_set_durable(m.pn, C.bool(b)) }
 func (m *message) SetPriority(b uint8) { C.pn_message_set_priority(m.pn, C.uint8_t(b)) }
 func (m *message) SetTTL(d time.Duration) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org