Skip to content

Commit

Permalink
respect linter
Browse files Browse the repository at this point in the history
  • Loading branch information
host6 committed Sep 5, 2023
1 parent 21eaae0 commit 33723b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var SendRequest func(ctx context.Context,
request *Request, timeout time.Duration) (res *Response, chunks <-chan []byte, chunksError *error, err error)

// SendRequest2 used by router and app, sends a message to a given queue
// err is not nil -> NATS-related error occured before or during reading the first response packet. Sections and secError are nil, res must be ignored
// err is not nil -> NATS-related error occurred before or during reading the first response packet. Sections and secError are nil, res must be ignored
// timeout means timeout during reading Response or ISection
// sections not nil ->
// - res must be ignored
Expand Down Expand Up @@ -50,11 +50,11 @@ var SendParallelResponse func(ctx context.Context, sender interface{}, chunks <-
// Result of Close
var SendParallelResponse2 func(ctx context.Context, sender interface{}) (rsender IResultSenderClosable)

// Depecated: use MetricCntSerialRequest
// Deprecated: use MetricCntSerialRequest
// MetricSerialRequestCnt s.e.
var MetricSerialRequestCnt uint64

// DepecatedL use MetricDurSerialRequest
// Deprecated: use MetricDurSerialRequest
// MetricSerialRequestDurNs s.e.
var MetricSerialRequestDurNs uint64

Expand Down
2 changes: 2 additions & 0 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ func CreateResponse(code int, message string) Response {

// CreateErrorResponse creates *Response with given status code, error message and ContentType "text/plain"
func CreateErrorResponse(code int, err error) Response {
x := MetricSerialRequestCnt
_ = x
return Response{
StatusCode: code,
Data: []byte(err.Error()),
Expand Down

0 comments on commit 33723b6

Please sign in to comment.