Skip to content

Commit

Permalink
Refactor Message class
Browse files Browse the repository at this point in the history
Add changes to ergo-core readme
  • Loading branch information
ccellado committed Feb 8, 2024
1 parent c55fdef commit 810d708
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class MessageSerializer(specs: Seq[MessageSpec[_]], magicBytes: Array[Byte]) {

import scala.language.existentials

implicit private val byteOrder: ByteOrder = ByteOrder.BIG_ENDIAN
private implicit val byteOrder: ByteOrder = ByteOrder.BIG_ENDIAN

private val specsMap = Map(specs.map(s => s.messageCode -> s): _*)
.ensuring(m => m.size == specs.size, "Duplicate message codes")
Expand Down

0 comments on commit 810d708

Please sign in to comment.