Merge pull request #359 from skriss/reduce-azure-polling-interval
Azure: reduce client polling interval from default 60s to 5spull/386/head
commit
07fcc927b7
|
@ -110,6 +110,9 @@ func (b *blockStore) Init(config map[string]string) error {
|
||||||
disksClient := disk.NewDisksClient(cfg[azureSubscriptionIDKey])
|
disksClient := disk.NewDisksClient(cfg[azureSubscriptionIDKey])
|
||||||
snapsClient := disk.NewSnapshotsClient(cfg[azureSubscriptionIDKey])
|
snapsClient := disk.NewSnapshotsClient(cfg[azureSubscriptionIDKey])
|
||||||
|
|
||||||
|
disksClient.PollingDelay = 5 * time.Second
|
||||||
|
snapsClient.PollingDelay = 5 * time.Second
|
||||||
|
|
||||||
authorizer := autorest.NewBearerAuthorizer(spt)
|
authorizer := autorest.NewBearerAuthorizer(spt)
|
||||||
disksClient.Authorizer = authorizer
|
disksClient.Authorizer = authorizer
|
||||||
snapsClient.Authorizer = authorizer
|
snapsClient.Authorizer = authorizer
|
||||||
|
|
Loading…
Reference in New Issue