瀏覽代碼

pkg/transport: fix minor typo

Gyu-Ho Lee 9 年之前
父節點
當前提交
c38f0290a7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/transport/timeout_transport.go

+ 1 - 1
pkg/transport/timeout_transport.go

@@ -35,7 +35,7 @@ func NewTimeoutTransport(info TLSInfo, dialtimeoutd, rdtimeoutd, wtimeoutd time.
 		// it should not be put back to http transport as an idle connection for future usage.
 		tr.MaxIdleConnsPerHost = -1
 	} else {
-		// allow more idle connections between peers to avoid unncessary port allocation.
+		// allow more idle connections between peers to avoid unnecessary port allocation.
 		tr.MaxIdleConnsPerHost = 1024
 	}