Skip to content

Commit

Permalink
Fix dfstore getMetadata. (#2871)
Browse files Browse the repository at this point in the history
fix: fix dfstore getMetadata.

Signed-off-by: XDTD <1355582364@qq.com>
  • Loading branch information
XDTD authored Nov 9, 2023
1 parent 3557eb5 commit 20fbf49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/objectstorage/oss.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func newOSS(region, endpoint, accessKey, secretKey string, httpClient *http.Clie
// GetMetadata returns metadata of object storage.
func (o *oss) GetMetadata(ctx context.Context) *Metadata {
return &Metadata{
Name: ServiceNameOBS,
Name: ServiceNameOSS,
Region: o.region,
Endpoint: o.endpoint,
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/objectstorage/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func newS3(region, endpoint, accessKey, secretKey string, s3ForcePathStyle bool,
// GetMetadata returns metadata of object storage.
func (s *s3) GetMetadata(ctx context.Context) *Metadata {
return &Metadata{
Name: ServiceNameOBS,
Name: ServiceNameS3,
Region: s.region,
Endpoint: s.endpoint,
}
Expand Down

0 comments on commit 20fbf49

Please sign in to comment.