Skip to content

Commit

Permalink
fix(plc4go): Fix golang compile errors.
Browse files Browse the repository at this point in the history
Signed-off-by: Łukasz Dywicki <[email protected]>
  • Loading branch information
splatch committed Feb 12, 2024
1 parent df46c95 commit 0c22ae7
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 98 deletions.
4 changes: 2 additions & 2 deletions plc4go/internal/opcua/EncryptionHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ func (h *EncryptionHandler) decodeMessage(ctx context.Context, pdu readWriteMode
var message []byte
switch pduMessage := pdu.GetMessage().(type) {
case readWriteModel.OpcuaOpenResponseExactly:
message = pduMessage.GetMessage()
message = pduMessage.(readWriteModel.BinaryPayloadExactly).GetPayload()
case readWriteModel.OpcuaMessageResponseExactly:
message = pduMessage.GetMessage()
message = pduMessage.(readWriteModel.BinaryPayloadExactly).GetPayload()
default:
h.log.Trace().Type("pdu", pdu).Msg("unhandled type")
return pdu, nil
Expand Down
Loading

0 comments on commit 0c22ae7

Please sign in to comment.