Skip to content

Commit 6eb2358

Browse files
committed
Compile error
1 parent b7cfd31 commit 6eb2358

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mqmetric/channel.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ func parseData(instanceType int32, cfh *ibmmq.MQCFH, buf []byte) string {
309309
if instanceType == ibmmq.MQOT_SAVED_CHANNEL {
310310
subKey := chlName + "/" + connName + "/" + rqmName + "/.*"
311311
for k, _ := range channelsSeen {
312-
if regexp.MatchString(subkey, k) {
312+
re := regexp.MustCompile(subKey)
313+
if re.MatchString(k) {
313314
return ""
314315
}
315316
}

0 commit comments

Comments
 (0)