mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
reuse buffer
This commit is contained in:
@@ -32,7 +32,7 @@ func MarshalCommand(command interface{}, writer io.Writer) error {
|
||||
return ErrUnknownCommand
|
||||
}
|
||||
|
||||
buffer := buf.NewLocal(512)
|
||||
buffer := buf.New()
|
||||
defer buffer.Release()
|
||||
|
||||
err := factory.Marshal(command, buffer)
|
||||
|
||||
Reference in New Issue
Block a user