Skip to content

Commit

Permalink
store: retryTransaction in Object
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed May 23, 2024
1 parent bc8448e commit c132790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stores/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -1388,7 +1388,7 @@ GROUP BY d.id
}

func (s *SQLStore) Object(ctx context.Context, bucket, path string) (obj api.Object, err error) {
err = s.db.WithContext(ctx).Transaction(func(tx *gorm.DB) error {
err = s.retryTransaction(ctx, func(tx *gorm.DB) error {
obj, err = s.object(tx, bucket, path)
return err
})
Expand Down

0 comments on commit c132790

Please sign in to comment.