Fix dfstore getMetadata. (#2871)

fix: fix dfstore getMetadata.

Signed-off-by: XDTD <1355582364@qq.com>
This commit is contained in:
tan ding 2023-11-09 17:04:55 +08:00 committed by GitHub
parent 3557eb5453
commit 20fbf49e67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ func newOSS(region, endpoint, accessKey, secretKey string, httpClient *http.Clie
// GetMetadata returns metadata of object storage. // GetMetadata returns metadata of object storage.
func (o *oss) GetMetadata(ctx context.Context) *Metadata { func (o *oss) GetMetadata(ctx context.Context) *Metadata {
return &Metadata{ return &Metadata{
Name: ServiceNameOBS, Name: ServiceNameOSS,
Region: o.region, Region: o.region,
Endpoint: o.endpoint, Endpoint: o.endpoint,
} }

View File

@ -62,7 +62,7 @@ func newS3(region, endpoint, accessKey, secretKey string, s3ForcePathStyle bool,
// GetMetadata returns metadata of object storage. // GetMetadata returns metadata of object storage.
func (s *s3) GetMetadata(ctx context.Context) *Metadata { func (s *s3) GetMetadata(ctx context.Context) *Metadata {
return &Metadata{ return &Metadata{
Name: ServiceNameOBS, Name: ServiceNameS3,
Region: s.region, Region: s.region,
Endpoint: s.endpoint, Endpoint: s.endpoint,
} }