Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.

Commit 00c93ae

Browse files
committed
refactor: rename LastVerified to LastUpdated
1 parent fe20f2c commit 00c93ae

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

api/server/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func (m *HttpServer) handleBlobGetStatusByID(w http.ResponseWriter, r *http.Requ
158158
response.Replicas = append(response.Replicas, api.Replica{
159159
Provider: replica.Provider,
160160
Status: replica.Status,
161-
LastVerified: replica.LastVerified,
161+
LastVerified: replica.LastUpdated,
162162
Expiration: replica.Expiration,
163163
})
164164
}

blob/blob.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ type (
3636
Replicas []Replica
3737
}
3838
Replica struct {
39-
Provider string
40-
Status string
41-
LastVerified time.Time
42-
Expiration time.Time
39+
Provider string
40+
Status string
41+
LastUpdated time.Time
42+
Expiration time.Time
4343
}
4444
Store interface {
4545
Put(context.Context, io.ReadCloser) (*Descriptor, error)

integration/singularity/store.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,10 +465,10 @@ func (s *SingularityStore) Describe(ctx context.Context, id blob.ID) (*blob.Desc
465465
}
466466

467467
replicas = append(replicas, blob.Replica{
468-
LastVerified: updatedAt,
469-
Provider: deal.Provider,
470-
Status: string(deal.State),
471-
Expiration: epochutil.EpochToTime(int32(deal.EndEpoch)),
468+
LastUpdated: updatedAt,
469+
Provider: deal.Provider,
470+
Status: string(deal.State),
471+
Expiration: epochutil.EpochToTime(int32(deal.EndEpoch)),
472472
})
473473
}
474474
descriptor.Status = &blob.Status{

0 commit comments

Comments
 (0)