Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iamKunalGupta committed Mar 20, 2024
1 parent 3b19894 commit 8405258
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion flow/connectors/clickhouse/clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"crypto/tls"
"database/sql"
"errors"
"fmt"
"net/url"
"os"
Expand Down Expand Up @@ -121,7 +122,7 @@ func NewClickhouseConnector(
// Fallback: Get S3 credentials from environment
awsBucketName := os.Getenv("PEERDB_CLICKHOUSE_AWS_S3_BUCKET_NAME")
if awsBucketName == "" {
return nil, fmt.Errorf("PeerDB Clickhouse Bucket Name not set")
return nil, errors.New("PeerDB Clickhouse Bucket Name not set")
}

awsBucketPath = fmt.Sprintf("s3://%s/%s", awsBucketName, bucketPathSuffix)
Expand Down
4 changes: 2 additions & 2 deletions flow/connectors/utils/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import (
"strings"
"time"

"github.com/PeerDB-io/peer-flow/logger"

"github.com/aws/aws-sdk-go-v2/aws"
v4 "github.com/aws/aws-sdk-go-v2/aws/signer/v4"
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/credentials"
"github.com/aws/aws-sdk-go-v2/credentials/stscreds"
"github.com/aws/aws-sdk-go-v2/service/s3"

"github.com/PeerDB-io/peer-flow/logger"
)

type AWSSecrets struct {
Expand Down

0 comments on commit 8405258

Please sign in to comment.