Browse Source

chore: replace network.WithUseTransient(deprecated) with network.WithAllowLimitedConn

Signed-off-by: mudler <[email protected]>
mudler 1 year ago
parent
commit
dde8cbe7b8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cmd/main.go

+ 1 - 1
cmd/main.go

@@ -212,7 +212,7 @@ func Main() func(c *cli.Context) error {
 		ctx := context.Background()
 
 		if c.Bool("transient-conn") {
-			ctx = network.WithUseTransient(ctx, "accept")
+			ctx = network.WithAllowLimitedConn(ctx, "accept")
 		}
 
 		if c.Bool("api") {