Skip to content

Commit

Permalink
import format
Browse files Browse the repository at this point in the history
  • Loading branch information
DMwangnima committed Dec 7, 2023
1 parent 6e53389 commit bff6fa7
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions config/provider_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (

"github.com/dubbogo/gost/log/logger"

perrors "github.com/pkg/errors"

tripleConstant "github.com/dubbogo/triple/pkg/common/constant"

perrors "github.com/pkg/errors"
)

import (
Expand Down
12 changes: 6 additions & 6 deletions protocol/dubbo/example/new/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ package main

import (
"context"
"dubbo.apache.org/dubbo-go/v3/common"
"dubbo.apache.org/dubbo-go/v3/common/extension"
"dubbo.apache.org/dubbo-go/v3/config"
"dubbo.apache.org/dubbo-go/v3/config_center"
"dubbo.apache.org/dubbo-go/v3/config_center/parser"
gxset "github.com/dubbogo/gost/container/set"
)

import (
gxset "github.com/dubbogo/gost/container/set"
"github.com/dubbogo/gost/log/logger"
)

import (
"dubbo.apache.org/dubbo-go/v3/client"
"dubbo.apache.org/dubbo-go/v3/common"
"dubbo.apache.org/dubbo-go/v3/common/extension"
"dubbo.apache.org/dubbo-go/v3/config"
"dubbo.apache.org/dubbo-go/v3/config_center"
"dubbo.apache.org/dubbo-go/v3/config_center/parser"
_ "dubbo.apache.org/dubbo-go/v3/imports"
)

Expand Down
2 changes: 1 addition & 1 deletion protocol/triple/health/health_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ import (
"testing"
"time"
)

import (
"github.com/stretchr/testify/assert"

// If there is a conflict between the healthCheck of Dubbo and the healthCheck of gRPC, an error will occur.
_ "google.golang.org/grpc/health/grpc_health_v1"
)

Expand Down
2 changes: 1 addition & 1 deletion protocol/triple/triple.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package triple

import (
"dubbo.apache.org/dubbo-go/v3/protocol/triple/health"
"sync"
)

Expand All @@ -31,6 +30,7 @@ import (
"dubbo.apache.org/dubbo-go/v3/common/constant"
"dubbo.apache.org/dubbo-go/v3/common/extension"
"dubbo.apache.org/dubbo-go/v3/protocol"
"dubbo.apache.org/dubbo-go/v3/protocol/triple/health"
"dubbo.apache.org/dubbo-go/v3/server"
)

Expand Down
8 changes: 6 additions & 2 deletions protocol/triple/triple_protocol/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ package triple_protocol

import (
"context"
"net/http"
"sync"
)

import (
"github.com/dubbogo/grpc-go"

"golang.org/x/net/http2"
"golang.org/x/net/http2/h2c"
"net/http"
"sync"
)

type Server struct {
Expand Down

0 comments on commit bff6fa7

Please sign in to comment.