From 56c6cacd5eb4dacb3f78d0320ed80505f3157d23 Mon Sep 17 00:00:00 2001 From: delarea Date: Mon, 28 Aug 2023 17:13:03 +0300 Subject: [PATCH] fix import --- xray/usage/reportusage.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/xray/usage/reportusage.go b/xray/usage/reportusage.go index 365486c91..4102373cb 100644 --- a/xray/usage/reportusage.go +++ b/xray/usage/reportusage.go @@ -3,13 +3,12 @@ package usage import ( "encoding/json" "errors" - "net/http" - "github.com/jfrog/jfrog-client-go/artifactory/services/utils" clientutils "github.com/jfrog/jfrog-client-go/utils" "github.com/jfrog/jfrog-client-go/utils/errorutils" "github.com/jfrog/jfrog-client-go/utils/log" - "github.com/jfrog/jfrog-client-go/xray" + "github.com/jfrog/jfrog-client-go/xray/manager" + "net/http" ) const ( @@ -33,7 +32,7 @@ type ReportXrayEventData struct { Origin string `json:"origin,omitempty"` } -func SendXrayUsageEvents(serviceManager xray.XrayServicesManager, events ...ReportXrayEventData) error { +func SendXrayUsageEvents(serviceManager manager.SecurityServiceManager, events ...ReportXrayEventData) error { if len(events) == 0 { return errorutils.CheckErrorf("Nothing to send.") }