Fix dfstore getMetadata. (#2871)
fix: fix dfstore getMetadata. Signed-off-by: XDTD <1355582364@qq.com>
This commit is contained in:
parent
3557eb5453
commit
20fbf49e67
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue