Commit 2242e0b9 authored by Daniel P. Berrange's avatar Daniel P. Berrange

Rename stream Close to Finish to match the C API

The Go binding seeks to match C API naming in general.
Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
parent be9ce205
......@@ -1278,7 +1278,7 @@ func TestStorageVolUploadDownload(t *testing.T) {
}
// 4. finish!
if err := stream.Close(); err != nil {
if err := stream.Finish(); err != nil {
t.Fatal(err)
}
......@@ -1307,7 +1307,7 @@ func TestStorageVolUploadDownload(t *testing.T) {
t.Logf("read back: %#v", buf[:len(data)])
// 4. finish!
if err := downStream.Close(); err != nil {
if err := downStream.Finish(); err != nil {
t.Fatal(err)
}
}
......
......@@ -66,7 +66,7 @@ func (v *Stream) Abort() error {
return nil
}
func (v *Stream) Close() error {
func (v *Stream) Finish() error {
result := C.virStreamFinish(v.ptr)
if result == -1 {
return GetLastError()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment