[Libguestfs] [PATCH libnbd 6/9] golang: tests: Use AioBuffer.Slice()

Eric Blake eblake at redhat.com
Tue Feb 8 20:49:10 UTC 2022


On Sun, Jan 30, 2022 at 01:33:34AM +0200, Nir Soffer wrote:
> Slice() is easier to use and faster than Get() or Bytes(). Lets use the

Let's

> new way.
> 
> Signed-off-by: Nir Soffer <nsoffer at redhat.com>
> ---
>  golang/libnbd_500_aio_pread_test.go  | 2 +-
>  golang/libnbd_510_aio_pwrite_test.go | 8 +++++---
>  golang/libnbd_620_aio_buffer_test.go | 8 +++++---
>  3 files changed, 11 insertions(+), 7 deletions(-)
> 
> diff --git a/golang/libnbd_500_aio_pread_test.go b/golang/libnbd_500_aio_pread_test.go
> index 0811378c..bd0208ef 100644
> --- a/golang/libnbd_500_aio_pread_test.go

ACK.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org




More information about the Libguestfs mailing list