Skip to content

Commit 877ac6a

Browse files
committed
default ioSrcDomain => ioSrcHost
1 parent 969e1d1 commit 877ac6a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/java/com/qiniu/storage/BucketManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,8 +1085,8 @@ public Response getBucketQuotaResponse(String bucket) throws QiniuException {
10851085
* @return 源站域名
10861086
* @throws QiniuException 异常
10871087
*/
1088-
public String getDefaultIoSrcDomain(String bucket) throws QiniuException {
1089-
return configHelper.ioSrcDomain(auth.accessKey, bucket);
1088+
public String getDefaultIoSrcHost(String bucket) throws QiniuException {
1089+
return configHelper.ioSrcHost(auth.accessKey, bucket);
10901090
}
10911091

10921092
/*

src/main/java/com/qiniu/storage/ConfigHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public String ioHost(String ak, String bucket) throws QiniuException {
4545
return getScheme() + config.region.getIovipHost(regionReqInfo);
4646
}
4747

48-
public String ioSrcDomain(String ak, String bucket) throws QiniuException {
48+
public String ioSrcHost(String ak, String bucket) throws QiniuException {
4949
RegionReqInfo regionReqInfo = new RegionReqInfo(ak, bucket);
5050
return config.region.getIoSrcHost(regionReqInfo);
5151
}

src/test/java/test/com/qiniu/storage/BucketTest2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ public void testDefaultIoSrcDomainDownload() {
541541
// 获取默认源站域名
542542
String domain = "";
543543
try {
544-
domain = bucketManager.getDefaultIoSrcDomain(bucket);
544+
domain = bucketManager.getDefaultIoSrcHost(bucket);
545545
assertNotNull(domain, "domain is not null.");
546546
} catch (QiniuException e) {
547547
fail(e);

0 commit comments

Comments
 (0)