From 043a5b6fab723688191292b0be6944409394a64a Mon Sep 17 00:00:00 2001 From: JT Olio Date: Wed, 26 Jun 2019 11:24:50 -0600 Subject: [PATCH] lib/uplink: unexport bucket attribution check (#2352) * lib/uplink: unexport bucket attribution check --- lib/uplink/project.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/uplink/project.go b/lib/uplink/project.go index 897830857..9cd94c36b 100644 --- a/lib/uplink/project.go +++ b/lib/uplink/project.go @@ -152,7 +152,7 @@ func (p *Project) GetBucketInfo(ctx context.Context, bucket string) (b storj.Buc func (p *Project) OpenBucket(ctx context.Context, bucketName string, access *EncryptionAccess) (b *Bucket, err error) { defer mon.Task()(&ctx)(&err) - err = p.CheckBucketAttribution(ctx, bucketName) + err = p.checkBucketAttribution(ctx, bucketName) if err != nil { return nil, err } @@ -209,8 +209,10 @@ func (p *Project) OpenBucket(ctx context.Context, bucketName string, access *Enc }, nil } -// CheckBucketAttribution Checks the bucket attribution -func (p *Project) CheckBucketAttribution(ctx context.Context, bucketName string) error { +// checkBucketAttribution Checks the bucket attribution +func (p *Project) checkBucketAttribution(ctx context.Context, bucketName string) (err error) { + defer mon.Task()(&ctx)(&err) + if p.uplinkCfg.Volatile.PartnerID == "" { return nil }