mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-16 14:53:12 +00:00
Remove debug infomation
This commit is contained in:
1 parent
d12737b3b8
commit
919fd5b16b
2 files changed
+3
-6
No files matched your search
+3
-4
@@ -3,11 +3,11 @@ package net
|
||||
import (
|
||||
"io"
|
||||
|
||||
"github.com/v2ray/v2ray-core/log"
|
||||
_ "github.com/v2ray/v2ray-core/log"
|
||||
)
|
||||
|
||||
const (
|
||||
bufferSize = 8192
|
||||
bufferSize = 32 * 1024
|
||||
)
|
||||
|
||||
func ReaderToChan(stream chan<- []byte, reader io.Reader) error {
|
||||
@@ -24,8 +24,7 @@ func ReaderToChan(stream chan<- []byte, reader io.Reader) error {
|
||||
|
||||
func ChanToWriter(writer io.Writer, stream <-chan []byte) error {
|
||||
for buffer := range stream {
|
||||
nBytes, err := writer.Write(buffer)
|
||||
log.Debug("Writing %d bytes with error %v", nBytes, err)
|
||||
_, err := writer.Write(buffer)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user