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