@@ -152,7 +152,7 @@ func ParseMessageWithDataDictionary(
152152 msg * Message ,
153153 rawMessage * bytes.Buffer ,
154154 transportDataDictionary * datadictionary.DataDictionary ,
155- applicationDataDictionary * datadictionary.DataDictionary ,
155+ _ * datadictionary.DataDictionary ,
156156) (err error ) {
157157 msg .Header .Clear ()
158158 msg .Body .Clear ()
@@ -322,7 +322,7 @@ func (m *Message) IsMsgTypeOf(msgType string) bool {
322322func (m * Message ) reverseRoute () * Message {
323323 reverseMsg := NewMessage ()
324324
325- copy := func (src Tag , dest Tag ) {
325+ copyFunc := func (src Tag , dest Tag ) {
326326 var field FIXString
327327 if m .Header .GetField (src , & field ) == nil {
328328 if len (field ) != 0 {
@@ -331,25 +331,25 @@ func (m *Message) reverseRoute() *Message {
331331 }
332332 }
333333
334- copy (tagSenderCompID , tagTargetCompID )
335- copy (tagSenderSubID , tagTargetSubID )
336- copy (tagSenderLocationID , tagTargetLocationID )
334+ copyFunc (tagSenderCompID , tagTargetCompID )
335+ copyFunc (tagSenderSubID , tagTargetSubID )
336+ copyFunc (tagSenderLocationID , tagTargetLocationID )
337337
338- copy (tagTargetCompID , tagSenderCompID )
339- copy (tagTargetSubID , tagSenderSubID )
340- copy (tagTargetLocationID , tagSenderLocationID )
338+ copyFunc (tagTargetCompID , tagSenderCompID )
339+ copyFunc (tagTargetSubID , tagSenderSubID )
340+ copyFunc (tagTargetLocationID , tagSenderLocationID )
341341
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 )
346346
347347 // Tags added in 4.1.
348348 var beginString FIXString
349349 if m .Header .GetField (tagBeginString , & beginString ) == nil {
350350 if string (beginString ) != BeginStringFIX40 {
351- copy (tagOnBehalfOfLocationID , tagDeliverToLocationID )
352- copy (tagDeliverToLocationID , tagOnBehalfOfLocationID )
351+ copyFunc (tagOnBehalfOfLocationID , tagDeliverToLocationID )
352+ copyFunc (tagDeliverToLocationID , tagOnBehalfOfLocationID )
353353 }
354354 }
355355
0 commit comments