parent
1a456eaa8b
commit
5b9a5cadef
3 changed files with 6 additions and 6 deletions
4
api/cache/system.go
vendored
4
api/cache/system.go
vendored
|
@ -119,7 +119,7 @@ func (o *SystemCache) GetNotificationConfiguration(key string) *data.Notificatio
|
|||
return result
|
||||
}
|
||||
|
||||
// GetTagging returns tags of a bucket or an object
|
||||
// GetTagging returns tags of a bucket or an object.
|
||||
func (o *SystemCache) GetTagging(key string) map[string]string {
|
||||
entry, err := o.cache.Get(key)
|
||||
if err != nil {
|
||||
|
@ -156,7 +156,7 @@ func (o *SystemCache) PutNotificationConfiguration(key string, obj *data.Notific
|
|||
return o.cache.Set(key, obj)
|
||||
}
|
||||
|
||||
// PutTagging puts tags of a bucket or an object
|
||||
// PutTagging puts tags of a bucket or an object.
|
||||
func (o *SystemCache) PutTagging(key string, tagSet map[string]string) error {
|
||||
return o.cache.Set(key, tagSet)
|
||||
}
|
||||
|
|
|
@ -66,15 +66,15 @@ func (n *layer) GetBucketNotificationConfiguration(ctx context.Context, bktInfo
|
|||
return conf, nil
|
||||
}
|
||||
|
||||
objId, err := n.treeService.GetNotificationConfigurationNode(ctx, &bktInfo.CID)
|
||||
objID, err := n.treeService.GetNotificationConfigurationNode(ctx, &bktInfo.CID)
|
||||
if err != nil && !errorsStd.Is(err, ErrNodeNotFound) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
conf := &data.NotificationConfiguration{}
|
||||
|
||||
if objId != nil {
|
||||
obj, err := n.objectGet(ctx, bktInfo, *objId)
|
||||
if objID != nil {
|
||||
obj, err := n.objectGet(ctx, bktInfo, *objID)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* REMOVE THIS AFTER SIGNATURE WILL BE AVAILABLE IN TREE CLIENT FROM NEOFS NODE */
|
||||
/*REMOVE THIS AFTER SIGNATURE WILL BE AVAILABLE IN TREE CLIENT FROM NEOFS NODE*/
|
||||
package neofs
|
||||
|
||||
import (
|
||||
|
|
Loading…
Reference in a new issue