Skip to content

Commit

Permalink
Add TODO.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Sep 16, 2024
1 parent 2daa068 commit 665e1ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clients/snowflake/writes.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ func (s *Store) Append(tableData *optimization.TableData, _ bool) error {
var err error
for i := 0; i < maxRetries; i++ {
if i > 0 {
// TODO: remove
if IsAuthExpiredError(err) {
slog.Warn("Authentication has expired, will reload the Snowflake store and retry appending", slog.Any("err", err))
if connErr := s.reestablishConnection(); connErr != nil {
Expand Down Expand Up @@ -49,6 +50,7 @@ func (s *Store) Merge(tableData *optimization.TableData) error {
var err error
for i := 0; i < maxRetries; i++ {
if i > 0 {
// TODO: Remove
if IsAuthExpiredError(err) {
slog.Warn("Authentication has expired, will reload the Snowflake store and retry merging", slog.Any("err", err))
if connErr := s.reestablishConnection(); connErr != nil {
Expand Down

0 comments on commit 665e1ae

Please sign in to comment.