engine: graph, resources: Change Watch to use ctx
This is a general port. There are many optimizations and cleanups we can do now that we have a proper context passed in. That's for a future patch.
This commit is contained in:
@@ -371,7 +371,7 @@ func (obj *HetznerVMRes) Close() error {
|
||||
// Watch is not implemented for this resource, since the Hetzner API does not
|
||||
// provide any event streams. Instead, always use polling.
|
||||
// NOTE: HetznerPollLimit sets an explicit minimum on the polling interval.
|
||||
func (obj *HetznerVMRes) Watch() error {
|
||||
func (obj *HetznerVMRes) Watch(context.Context) error {
|
||||
return fmt.Errorf("invalid Watch call: requires poll metaparam")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user