fix format
Signed-off-by: Fabiano Graças <fabiano.gracas@faro.com>
This commit is contained in:
parent
f284ef978d
commit
7bb2d9dc74
2 changed files with 2 additions and 2 deletions
|
|
@ -90,7 +90,7 @@ func (checkpointer *DynamoCheckpoint) Init() error {
|
||||||
checkpointer.log.Infof("Creating DynamoDB session")
|
checkpointer.log.Infof("Creating DynamoDB session")
|
||||||
|
|
||||||
if checkpointer.svc == nil {
|
if checkpointer.svc == nil {
|
||||||
resolver := aws.EndpointResolverWithOptionsFunc(func(service, region string, options ...interface{}) (aws.Endpoint, error) {
|
resolver := aws.EndpointResolverWithOptionsFunc(func(service, region string, options ...interface{}) (aws.Endpoint, error) {
|
||||||
if service == dynamodb.ServiceID && len(checkpointer.kclConfig.DynamoDBEndpoint) > 0 {
|
if service == dynamodb.ServiceID && len(checkpointer.kclConfig.DynamoDBEndpoint) > 0 {
|
||||||
return aws.Endpoint{
|
return aws.Endpoint{
|
||||||
PartitionID: "aws",
|
PartitionID: "aws",
|
||||||
|
|
|
||||||
|
|
@ -159,7 +159,7 @@ func (w *Worker) initialize() error {
|
||||||
// create session for Kinesis
|
// create session for Kinesis
|
||||||
log.Infof("Creating Kinesis client")
|
log.Infof("Creating Kinesis client")
|
||||||
|
|
||||||
resolver := aws.EndpointResolverWithOptionsFunc(func(service, region string, options ...interface{}) (aws.Endpoint, error) {
|
resolver := aws.EndpointResolverWithOptionsFunc(func(service, region string, options ...interface{}) (aws.Endpoint, error) {
|
||||||
return aws.Endpoint{
|
return aws.Endpoint{
|
||||||
PartitionID: "aws",
|
PartitionID: "aws",
|
||||||
URL: w.kclConfig.KinesisEndpoint,
|
URL: w.kclConfig.KinesisEndpoint,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue