Fix typo in the name of a constant (#2262)

Motivation:

A constant was named 'envolope' instead of 'envelope'.

Modifications:

Replaced 'envolope' with 'envelope'.

Result:

The typo will be fixed.
This commit is contained in:
Helder Sérvio 2022-09-04 14:23:54 -03:00 committed by GitHub
parent af95e9d1c6
commit dd8c5828c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -41,9 +41,9 @@ private final class EchoHandler: ChannelInboundHandler {
self.numBytes = buffer.readableBytes
// Forward the data.
let envolope = AddressedEnvelope<ByteBuffer>(remoteAddress: remoteAddress, data: buffer)
let envelope = AddressedEnvelope<ByteBuffer>(remoteAddress: remoteAddress, data: buffer)
context.writeAndFlush(self.wrapOutboundOut(envolope), promise: nil)
context.writeAndFlush(self.wrapOutboundOut(envelope), promise: nil)
} catch {
print("Could not resolve remote address")