Skip to content

Commit 7f2462d

Browse files
HamzaHamza
authored andcommitted
Update timestamp.go to use default filename
1 parent dde1e3f commit 7f2462d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code-engine-cos2cos/metadata/timestamp.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func GetLastProcessTime(buckets ...*bucketOperations.Bucket) time.Time {
4848
// Function to load timestamp file locally or using a object in Bucket
4949
func LoadTimestamp(buckets []*bucketOperations.Bucket) ([]byte, error) {
5050

51-
filename := os.Getenv("BUCKET_TIMESTAMP_FILENAME")
51+
filename := "last_modified_time.json"
5252

5353
if len(buckets) > 0 {
5454
bucket := buckets[0]
@@ -71,7 +71,7 @@ func LoadTimestamp(buckets []*bucketOperations.Bucket) ([]byte, error) {
7171

7272
// Function expects a timestamp as string in format "time.RFC3339"
7373
func PutLastBackupTime(timestamp string, bucket ...*bucketOperations.Bucket) error {
74-
filename := os.Getenv("BUCKET_TIMESTAMP_FILENAME")
74+
filename := "last_modified_time.json"
7575

7676
if timestamp == "" {
7777
timestamp = time.Now().Format(time.RFC3339)

0 commit comments

Comments
 (0)