Skip to content

Commit

Permalink
fumpt
Browse files Browse the repository at this point in the history
Signed-off-by: Jake Engelberg <jake@diagrid.io>
  • Loading branch information
jake-engelberg committed Nov 4, 2024
1 parent c6ae704 commit 7f04bb3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pkg/diagnostics/errorcode_monitoring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package diagnostics
import (
"testing"

"github.com/dapr/dapr/pkg/messages/errorcodes"
"github.com/stretchr/testify/assert"
"go.opencensus.io/stats/view"

"github.com/dapr/dapr/pkg/messages/errorcodes"
)

func TestRecordErrorCode(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/messages/api_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ import (
"fmt"
"net/http"

"github.com/dapr/dapr/pkg/messages/errorcodes"
grpcCodes "google.golang.org/grpc/codes"
grpcStatus "google.golang.org/grpc/status"

"github.com/dapr/dapr/pkg/messages/errorcodes"
)

const (
Expand Down
5 changes: 3 additions & 2 deletions pkg/messages/api_error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ import (
"reflect"
"testing"

"github.com/dapr/dapr/pkg/messages/errorcodes"
grpcCodes "google.golang.org/grpc/codes"
grpcStatus "google.golang.org/grpc/status"

"github.com/dapr/dapr/pkg/messages/errorcodes"
)

func TestAPIError_WithFormat(t *testing.T) {
type fields struct {
message string
tag errorcodes.ErrorCode
tag errorcodes.ErrorCode
httpCode int
grpcCode grpcCodes.Code
}
Expand Down

0 comments on commit 7f04bb3

Please sign in to comment.