@@ -19,7 +19,7 @@ import NIOCore
1919extension LambdaHandler where Event == String {
2020 /// Implementation of a `ByteBuffer` to `String` decoding.
2121 @inlinable
22- public func decode( buffer: ByteBuffer ) throws -> String {
22+ public func decode( buffer: ByteBuffer ) throws -> Event {
2323 guard let value = buffer. getString ( at: buffer. readerIndex, length: buffer. readableBytes) else {
2424 throw CodecError . invalidString
2525 }
@@ -31,7 +31,7 @@ extension LambdaHandler where Event == String {
3131extension LambdaHandler where Output == String {
3232 /// Implementation of `String` to `ByteBuffer` encoding.
3333 @inlinable
34- public func encode( value: String , into buffer: inout ByteBuffer ) throws {
34+ public func encode( value: Output , into buffer: inout ByteBuffer ) throws {
3535 buffer. writeString ( value)
3636 }
3737}
@@ -41,7 +41,7 @@ extension LambdaHandler where Output == String {
4141extension EventLoopLambdaHandler where Event == String {
4242 /// Implementation of `String` to `ByteBuffer` encoding.
4343 @inlinable
44- public func decode( buffer: ByteBuffer ) throws -> String {
44+ public func decode( buffer: ByteBuffer ) throws -> Event {
4545 guard let value = buffer. getString ( at: buffer. readerIndex, length: buffer. readableBytes) else {
4646 throw CodecError . invalidString
4747 }
@@ -52,7 +52,7 @@ extension EventLoopLambdaHandler where Event == String {
5252extension EventLoopLambdaHandler where Output == String {
5353 /// Implementation of a `ByteBuffer` to `String` decoding.
5454 @inlinable
55- public func encode( value: String , into buffer: inout ByteBuffer ) throws {
55+ public func encode( value: Output , into buffer: inout ByteBuffer ) throws {
5656 buffer. writeString ( value)
5757 }
5858}
0 commit comments