mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
refactor
This commit is contained in:
parent
d792faff70
commit
891b8a03de
@ -52,11 +52,11 @@ type bufferToBytesReader struct {
|
||||
// fill fills in the internal buffer.
|
||||
func (v *bufferToBytesReader) fill() {
|
||||
b, err := v.stream.Read()
|
||||
v.current = b
|
||||
if err != nil {
|
||||
v.err = err
|
||||
v.current = nil
|
||||
return
|
||||
}
|
||||
v.current = b
|
||||
}
|
||||
|
||||
func (v *bufferToBytesReader) Read(b []byte) (int, error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user