Skip to content

Commit edff8d2

Browse files
committed
feat(BRE2-656): Allow modification of instance poll interval
1 parent 2d74404 commit edff8d2

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

v1/instance.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
type CloudInstanceReader interface {
1212
GetInstance(ctx context.Context, id CloudProviderInstanceID) (*Instance, error)
1313
ListInstances(ctx context.Context, args ListInstancesArgs) ([]Instance, error)
14+
GetInstancePollTime() time.Duration
1415
}
1516

1617
type CloudCreateTerminateInstance interface {

v1/notimplemented.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ func (c notImplCloudClient) GetInstanceTypePollTime() time.Duration {
4343
return pollTime
4444
}
4545

46+
func (c notImplCloudClient) GetInstancePollTime() time.Duration {
47+
pollTime := 5 * time.Second
48+
return pollTime
49+
}
50+
4651
func (c notImplCloudClient) CreateInstance(_ context.Context, _ CreateInstanceAttrs) (*Instance, error) {
4752
return nil, ErrNotImplemented
4853
}

0 commit comments

Comments
 (0)