influxdb/kit/io
Roger Peppe 239331c1ae chore: kit/io: improve LimitedReadCloser
A fairly minor change, but this saves two allocations every time
points are written to the API (one allocation for the embedded io.LimitReader,
and one allocation to create the `close` closure).

Also fix the code so that it actually limits to the exact requested number of bytes
rather than one more. We don't really need to layer on top of io.LimitReader,
as that code is fairly minimal.
2020-09-28 18:39:45 +01:00
..
limited_read_closer.go chore: kit/io: improve LimitedReadCloser 2020-09-28 18:39:45 +01:00
limited_read_closer_test.go chore: kit/io: improve LimitedReadCloser 2020-09-28 18:39:45 +01:00