mirror of
https://github.com/ehang-io/nps
synced 2025-10-30 15:26:58 +08:00
add lock free queue
This commit is contained in:
@@ -263,7 +263,7 @@ func GetPortByAddr(addr string) int {
|
||||
return p
|
||||
}
|
||||
|
||||
func CopyBuffer(dst io.Writer, src io.Reader) (written int64, err error) {
|
||||
func CopyBuffer(dst io.Writer, src io.Reader, label ...string) (written int64, err error) {
|
||||
buf := CopyBuff.Get()
|
||||
defer CopyBuff.Put(buf)
|
||||
for {
|
||||
|
||||
Reference in New Issue
Block a user