Skip to content

Commit

Permalink
Reduce default batching interval
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
emilymye authored and modular-magician committed Dec 27, 2019
1 parent a6e2bd9 commit ceb43d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion google/batcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/hashicorp/errwrap"
)

const defaultBatchSendIntervalSec = 10
const defaultBatchSendIntervalSec = 3

// RequestBatcher is a global batcher object that keeps track of
// existing batches.
Expand Down
11 changes: 9 additions & 2 deletions google/cloudrun_domain_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@

package google

import "reflect"
import (
"fmt"
"reflect"
)

func GetCloudRunDomainMappingCaiObject(d TerraformResourceData, config *Config) (Asset, error) {
name, err := assetName(d, config, "//cloudrun.googleapis.com/apis/domains.cloudrun.com/v1/namespaces/{{project}}/domainmappings/{{name}}")
Expand Down Expand Up @@ -104,7 +107,11 @@ func expandCloudRunDomainMappingSpecForceOverride(v interface{}, d TerraformReso
}

func expandCloudRunDomainMappingSpecRouteName(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
return GetResourceNameFromSelfLink(v.(string)), nil
f, err := parseGlobalFieldValue("services", v.(string), "project", d, config, true)
if err != nil {
return nil, fmt.Errorf("Invalid value for route_name: %s", err)
}
return f.RelativeLink(), nil
}

func expandCloudRunDomainMappingSpecCertificateMode(v interface{}, d TerraformResourceData, config *Config) (interface{}, error) {
Expand Down

0 comments on commit ceb43d4

Please sign in to comment.