Skip to content

Commit f832621

Browse files
committed
Formatting
1 parent 11e642f commit f832621

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

ibmmq/mqi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ func (subObject *MQObject) Subrq(gosro *MQSRO, action int32) error {
384384
/*
385385
Begin is the function to start a two-phase XA transaction coordinated by MQ
386386
*/
387-
func (x *MQQueueManager) Begin(gobo *MQBO) error {
387+
func (x *MQQueueManager) Begin(gobo *MQBO) error {
388388
var mqrc C.MQLONG
389389
var mqcc C.MQLONG
390390
var mqbo C.MQBO

ibmmq/mqicb.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ func MQCALLBACK_Go(hConn C.MQHCONN, mqmd *C.MQMD, mqgmo *C.MQGMO, mqBuffer C.PMQ
8484
gocbc.CallbackArea = info.callbackArea
8585
gocbc.ConnectionArea = info.connectionArea
8686

87-
// Get the data
87+
// Get the data
8888
b := C.GoBytes(unsafe.Pointer(mqBuffer), C.int(mqcbc.DataLength))
8989

90-
// And finally call the user function
90+
// And finally call the user function
9191
info.callbackFunction(info.hObj, gomd, gogmo, b, gocbc, mqreturn)
9292
}
9393
}
@@ -129,7 +129,7 @@ func (object *MQObject) CB(goOperation int32, gocbd *MQCBD, gomd *MQMD, gogmo *M
129129
return &mqreturn
130130
}
131131

132-
// Add or remove the control information in the map used by the callback routines
132+
// Add or remove the control information in the map used by the callback routines
133133
switch mqOperation {
134134
case C.MQOP_DEREGISTER:
135135
delete(cbMap, key)
@@ -158,7 +158,7 @@ func (x *MQQueueManager) Ctl(goOperation int32, goctlo *MQCTLO) error {
158158
mqOperation = C.MQLONG(goOperation)
159159
copyCTLOtoC(&mqctlo, goctlo)
160160

161-
// Need to make sure control information is available before the callback
161+
// Need to make sure control information is available before the callback
162162
// is enabled. So this gets setup even if the MQCTL fails.
163163
key := makePartialKey(x.hConn)
164164
for k, info := range cbMap {

samples/amqscb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ func mainWithRc() int {
152152

153153
// Keep the program running until the callback has indicated there are no
154154
// more messages.
155+
d, _ := time.ParseDuration("5s")
155156
for ok {
156-
d, _ := time.ParseDuration("5s")
157157
time.Sleep(d)
158158
}
159159

0 commit comments

Comments
 (0)