mastering-akka icon indicating copy to clipboard operation
mastering-akka copied to clipboard

chapter 6 - samples folder Framing.delimiter(ByteString("\n"), Integer.MAX_VALUE))

Open cavapoo2 opened this issue 7 years ago • 0 comments

was throwing errors about "100" string not being able to convert toInt.

Need to add carrage return on Windows

Framing.delimiter(ByteString("\r\n"), Integer.MAX_VALUE))

also things like this i added

val sys = System.getProperty("os.name") val inPath = if (sys.contains("Windows")) FileSystems.getDefault.getPath(file.getPath.drop(1)) else FileSystems.getDefault.getPath(file.getPath)

Windows seems to have a backslash preceding the path.

cavapoo2 avatar Jul 14 '17 21:07 cavapoo2