Skip to content

Commit

Permalink
Merge pull request #51 from lesismal/http_no_mempool
Browse files Browse the repository at this point in the history
- update tls example
  • Loading branch information
lesismal authored Jul 3, 2021
2 parents a5f64c6 + f7f9762 commit 8e182ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/tls/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (

"github.com/lesismal/nbio"
"github.com/lesismal/nbio/extension/tls"
"github.com/lesismal/nbio/mempool"
)

var (
Expand Down Expand Up @@ -56,7 +55,7 @@ func main() {
for i := 0; i < 100; i++ {
go func() {
// step 1: make a tls.Conn by tls.Dial
tlsConn, err := tls.Dial("tcp", addr, tlsConfig, mempool.DefautAllocator{})
tlsConn, err := tls.Dial("tcp", addr, tlsConfig)
if err != nil {
log.Fatalf("Dial failed: %v\n", err)
}
Expand Down

0 comments on commit 8e182ef

Please sign in to comment.