Skip to content

Commit dd52cbb

Browse files
committed
update README to use sync operations for addHandler
1 parent aa0d800 commit dd52cbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ let server = ServerBootstrap(group: group)
2929
let handler = NIOSSLServerHandler(context: sslContext)
3030

3131
[...]
32-
channel.pipeline.addHandler(handler)
32+
channel.pipeline.syncOperations.addHandler(handler)
3333
[...]
3434
}
3535
```
@@ -46,7 +46,7 @@ let client = ClientBootstrap(group: group)
4646
let handler = try NIOSSLClientHandler(context: sslContext)
4747

4848
[...]
49-
channel.pipeline.addHandler(handler)
49+
channel.pipeline.syncOperations.addHandler(handler)
5050
[...]
5151
}
5252
```

0 commit comments

Comments
 (0)