Skip to content

Commit

Permalink
CR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalb4doc committed Dec 21, 2024
1 parent 9395eea commit f8c0e14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions jfconnect/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

type Manager interface {
LogMetric([]byte) error
PostMetric([]byte) error
}

type jfConnectManager struct {
Expand Down Expand Up @@ -39,7 +39,7 @@ func (jm *jfConnectManager) Client() *jfroghttpclient.JfrogHttpClient {
return jm.client
}

func (jm *jfConnectManager) LogMetric(metric []byte) error {
func (jm *jfConnectManager) PostMetric(metric []byte) error {
jfConnectService := services.NewJfConnectService(jm.config.GetServiceDetails(), jm.client)
return jfConnectService.LogMetric(metric)
return jfConnectService.PostMetric(metric)
}
2 changes: 1 addition & 1 deletion jfconnect/services/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (js *JfConnectService) GetJfConnectDetails() auth.ServiceDetails {
return *js.serviceDetails
}

func (js *JfConnectService) LogMetric(metric []byte) error {
func (js *JfConnectService) PostMetric(metric []byte) error {
details := js.GetJfConnectDetails()
httpClientDetails := details.CreateHttpClientDetails()
rtUtils.SetContentType("application/json", &httpClientDetails.Headers)
Expand Down

0 comments on commit f8c0e14

Please sign in to comment.