diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-07-08 12:45:31 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-07-11 09:03:37 +0000 |
| commit | bdca406b2cf89f029207aa8213460ec7a3267ccc (patch) | |
| tree | 077a43542b50ba8c6db9cc91567fb332032a3913 /vm/proxyapp/proxyappclient.go | |
| parent | a893841a9f868b1590b9dacfa772d634629ad88d (diff) | |
vm: make Instance implement io.Closer
It's better to follow standard interfaces.
Diffstat (limited to 'vm/proxyapp/proxyappclient.go')
| -rw-r--r-- | vm/proxyapp/proxyappclient.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vm/proxyapp/proxyappclient.go b/vm/proxyapp/proxyappclient.go index 31a19fdec..72faf5655 100644 --- a/vm/proxyapp/proxyappclient.go +++ b/vm/proxyapp/proxyappclient.go @@ -578,7 +578,7 @@ func (inst *instance) Diagnose(r *report.Report) (diagnosis []byte, wait bool) { return []byte(reply.Diagnosis), false } -func (inst *instance) Close() { +func (inst *instance) Close() error { var reply proxyrpc.CloseReply err := inst.ProxyApp.Call( "ProxyVM.Close", @@ -589,6 +589,7 @@ func (inst *instance) Close() { if err != nil { log.Logf(0, "error closing instance %v: %v", inst.ID, err) } + return err } type stdInOutCloser struct { |
