Merge pull request #359 from skriss/reduce-azure-polling-interval

Azure: reduce client polling interval from default 60s to 5s
pull/386/head
Andy Goldstein 2018-03-14 12:17:54 -04:00 committed by GitHub
commit 07fcc927b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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