good morning!!!!

Skip to content
Snippets Groups Projects
Commit 51c76e89 authored by Garet Halliday's avatar Garet Halliday
Browse files

found it

parent 4e011e9d
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
......@@ -59,6 +59,9 @@ func (T *Encoder) ReadFrom(r *Decoder) (int, error) {
}
}
T.packetPos += n
if n == 0 {
return n, io.ErrUnexpectedEOF
}
return n, nil
}
......
......@@ -196,7 +196,7 @@ func (T *Scheduler) Acquire(user uuid.UUID, timeout time.Duration) uuid.UUID {
// we were removed? probably fine
select {
case v, ok = <-c:
// we got a job but we're removed so let's just give it back
// we got a worker, but we're removed so let's just give it back
if ok {
T.cc.Put(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