Skip to content
Prev Previous commit
Next Next commit
no need to move reader in decodeEndOfLine
  • Loading branch information
dkz2 committed May 31, 2023
commit 077d0468815988cd5e8575bf9d0e1bf30430811f
2 changes: 0 additions & 2 deletions Sources/SwiftMemcache/MemcachedResponseDecoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ struct MemcachedResponseDecoder: NIOSingleStepByteToMessageDecoder {
return .waitForMoreBytes
}

// Skip the CRLF
buffer.moveReaderIndex(forwardBy: 2)
let response = MemcachedResponse(returnCode: returnCode, dataLength: dataLength, flags: flags)
self.nextStep = .returnCode
return .returnDecodedResponse(response)
Expand Down