mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-11 16:57:45 +02:00
adjust comment
This commit is contained in:
1 parent
2a9d4d1e23
commit
5b9a526310
1 file changed
+2
-2
@@ -58,8 +58,8 @@ func (bpe *BucketPolicyEngine) LoadBucketPolicyFromCache(bucket string, policyDo
|
||||
return nil
|
||||
}
|
||||
|
||||
// Convert policy.PolicyDocument to policy_engine.PolicyDocument using direct conversion
|
||||
// This is more efficient than JSON marshaling and provides better type safety
|
||||
// Convert policy.PolicyDocument to policy_engine.PolicyDocument without a JSON round-trip
|
||||
// This removes the prior intermediate marshal/unmarshal and adds type safety
|
||||
enginePolicyDoc, err := ConvertPolicyDocumentToPolicyEngine(policyDoc)
|
||||
if err != nil {
|
||||
glog.Errorf("Failed to convert bucket policy for %s: %v", bucket, err)
|
||||
|
||||
Reference in new issue
Block a user