@@ -152,7 +152,7 @@ func ParseMessageWithDataDictionary(
152
152
msg * Message ,
153
153
rawMessage * bytes.Buffer ,
154
154
transportDataDictionary * datadictionary.DataDictionary ,
155
- applicationDataDictionary * datadictionary.DataDictionary ,
155
+ _ * datadictionary.DataDictionary ,
156
156
) (err error ) {
157
157
msg .Header .Clear ()
158
158
msg .Body .Clear ()
@@ -322,7 +322,7 @@ func (m *Message) IsMsgTypeOf(msgType string) bool {
322
322
func (m * Message ) reverseRoute () * Message {
323
323
reverseMsg := NewMessage ()
324
324
325
- copy := func (src Tag , dest Tag ) {
325
+ copyFunc := func (src Tag , dest Tag ) {
326
326
var field FIXString
327
327
if m .Header .GetField (src , & field ) == nil {
328
328
if len (field ) != 0 {
@@ -331,25 +331,25 @@ func (m *Message) reverseRoute() *Message {
331
331
}
332
332
}
333
333
334
- copy (tagSenderCompID , tagTargetCompID )
335
- copy (tagSenderSubID , tagTargetSubID )
336
- copy (tagSenderLocationID , tagTargetLocationID )
334
+ copyFunc (tagSenderCompID , tagTargetCompID )
335
+ copyFunc (tagSenderSubID , tagTargetSubID )
336
+ copyFunc (tagSenderLocationID , tagTargetLocationID )
337
337
338
- copy (tagTargetCompID , tagSenderCompID )
339
- copy (tagTargetSubID , tagSenderSubID )
340
- copy (tagTargetLocationID , tagSenderLocationID )
338
+ copyFunc (tagTargetCompID , tagSenderCompID )
339
+ copyFunc (tagTargetSubID , tagSenderSubID )
340
+ copyFunc (tagTargetLocationID , tagSenderLocationID )
341
341
342
- copy (tagOnBehalfOfCompID , tagDeliverToCompID )
343
- copy (tagOnBehalfOfSubID , tagDeliverToSubID )
344
- copy (tagDeliverToCompID , tagOnBehalfOfCompID )
345
- copy (tagDeliverToSubID , tagOnBehalfOfSubID )
342
+ copyFunc (tagOnBehalfOfCompID , tagDeliverToCompID )
343
+ copyFunc (tagOnBehalfOfSubID , tagDeliverToSubID )
344
+ copyFunc (tagDeliverToCompID , tagOnBehalfOfCompID )
345
+ copyFunc (tagDeliverToSubID , tagOnBehalfOfSubID )
346
346
347
347
// Tags added in 4.1.
348
348
var beginString FIXString
349
349
if m .Header .GetField (tagBeginString , & beginString ) == nil {
350
350
if string (beginString ) != BeginStringFIX40 {
351
- copy (tagOnBehalfOfLocationID , tagDeliverToLocationID )
352
- copy (tagDeliverToLocationID , tagOnBehalfOfLocationID )
351
+ copyFunc (tagOnBehalfOfLocationID , tagDeliverToLocationID )
352
+ copyFunc (tagDeliverToLocationID , tagOnBehalfOfLocationID )
353
353
}
354
354
}
355
355
0 commit comments