We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b453d0 commit fd19e4fCopy full SHA for fd19e4f
qmp/rpc.go
@@ -15,6 +15,7 @@
15
package qmp
16
17
import (
18
+ "context"
19
"encoding/json"
20
"net"
21
@@ -59,7 +60,7 @@ func (rpc *LibvirtRPCMonitor) Disconnect() error {
59
60
// an error will be returned. Errors encountered during streaming will
61
// cause the returned event channel to be closed.
62
func (rpc *LibvirtRPCMonitor) Events() (<-chan Event, error) {
- events, err := rpc.l.Events(rpc.Domain)
63
+ events, err := rpc.l.SubscribeQEMUEvents(context.Background(), rpc.Domain)
64
if err != nil {
65
return nil, err
66
}
0 commit comments