frostfs-node/pkg/services/object/internal/client/error.go

15 lines
320 B
Go
Raw Normal View History

package internal
import clientcore "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/core/client"
type errorReporter interface {
ReportError(error)
}
// ReportError drops client connection if possible.
func ReportError(c clientcore.Client, err error) {
if ce, ok := c.(errorReporter); ok {
ce.ReportError(err)
}
}