good morning!!!!

Skip to content
Snippets Groups Projects
Verified Commit 1a1fda63 authored by a's avatar a
Browse files

remove unused

parent 7ceddd4f
No related branches found
No related tags found
No related merge requests found
Pipeline #29877 failed
...@@ -21,7 +21,6 @@ type Codec struct { ...@@ -21,7 +21,6 @@ type Codec struct {
wrLock sync.Mutex wrLock sync.Mutex
wr *bytes.Buffer wr *bytes.Buffer
w io.Writer w io.Writer
msgs chan *serverutil.Bundle
dec *json.Decoder dec *json.Decoder
decBuf json.RawMessage decBuf json.RawMessage
...@@ -32,13 +31,12 @@ func NewCodec(rd io.Reader, wr io.Writer) *Codec { ...@@ -32,13 +31,12 @@ func NewCodec(rd io.Reader, wr io.Writer) *Codec {
ctx, cn := context.WithCancel(context.TODO()) ctx, cn := context.WithCancel(context.TODO())
bufr := bufio.NewReader(rd) bufr := bufio.NewReader(rd)
c := &Codec{ c := &Codec{
ctx: ctx, ctx: ctx,
cn: cn, cn: cn,
rd: bufr, rd: bufr,
dec: json.NewDecoder(rd), dec: json.NewDecoder(rd),
wr: new(bytes.Buffer), wr: new(bytes.Buffer),
w: wr, w: wr,
msgs: make(chan *serverutil.Bundle, 8),
} }
return c return c
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment