forked from TrueCloudLab/frostfs-s3-gw
[#384] Add check of Notificator interface value
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
f0914b8a43
commit
83bb6fc020
3 changed files with 11 additions and 20 deletions
|
@ -281,10 +281,6 @@ func (n *layer) EphemeralKey() *keys.PublicKey {
|
|||
}
|
||||
|
||||
func (n *layer) Initialize(ctx context.Context, c Notificator) error {
|
||||
if c == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
if n.IsNotificationEnabled() {
|
||||
return fmt.Errorf("already initialized")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue