forked from TrueCloudLab/frostfs-node
[#1613] morph: Add tracing for morph queries to neo-go
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
parent
4de5fca547
commit
9b113c3156
120 changed files with 623 additions and 562 deletions
|
@ -1,6 +1,8 @@
|
|||
package nodevalidation
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/innerring/processors/netmap"
|
||||
apinetmap "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/netmap"
|
||||
)
|
||||
|
@ -26,9 +28,9 @@ func New(validators ...netmap.NodeValidator) *CompositeValidator {
|
|||
// VerifyAndUpdate passes apinetmap.NodeInfo to wrapped validators.
|
||||
//
|
||||
// If error appears, returns it immediately.
|
||||
func (c *CompositeValidator) VerifyAndUpdate(ni *apinetmap.NodeInfo) error {
|
||||
func (c *CompositeValidator) VerifyAndUpdate(ctx context.Context, ni *apinetmap.NodeInfo) error {
|
||||
for _, v := range c.validators {
|
||||
if err := v.VerifyAndUpdate(ni); err != nil {
|
||||
if err := v.VerifyAndUpdate(ctx, ni); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue