Browse Source

Chore: minor declaration

pull/133/head
xjasonlyu 3 years ago
parent
commit
096117dda1
  1. 3
      core/device/iobased/endpoint.go

3
core/device/iobased/endpoint.go

@ -91,8 +91,9 @@ func (e *Endpoint) dispatchLoop(cancel context.CancelFunc) {
// gracefully after (*Endpoint).dispatchLoop(context.CancelFunc) returns.
defer cancel()
for {
offset, mtu := e.offset, int(e.mtu)
for {
data := make([]byte, offset+mtu)
n, err := e.rw.Read(data)

Loading…
Cancel
Save