Skip to content
Snippets Groups Projects
Commit 7f3f3b2c authored by fangyincheng's avatar fangyincheng
Browse files

Fix: fomat import

parent a79f3a6e
No related branches found
No related tags found
No related merge requests found
......@@ -19,16 +19,19 @@ package config
import (
"fmt"
"github.com/apache/dubbo-go/common/extension"
perrors "github.com/pkg/errors"
"log"
"os"
"time"
)
import (
perrors "github.com/pkg/errors"
)
import (
"github.com/apache/dubbo-go/common"
"github.com/apache/dubbo-go/common/constant"
"github.com/apache/dubbo-go/common/extension"
"github.com/apache/dubbo-go/common/logger"
)
......
......@@ -19,7 +19,6 @@ package reader
import (
"bytes"
"github.com/apache/dubbo-go/protocol/rest/config"
"strconv"
"strings"
)
......@@ -34,6 +33,7 @@ import (
"github.com/apache/dubbo-go/common/extension"
"github.com/apache/dubbo-go/common/logger"
"github.com/apache/dubbo-go/config/interfaces"
"github.com/apache/dubbo-go/protocol/rest/config"
)
const REST = "rest"
......
......@@ -19,8 +19,6 @@ package reader
import (
"bytes"
"github.com/apache/dubbo-go/common/yaml"
"github.com/apache/dubbo-go/protocol/rest/config"
"testing"
)
......@@ -28,6 +26,11 @@ import (
"github.com/stretchr/testify/assert"
)
import (
"github.com/apache/dubbo-go/common/yaml"
"github.com/apache/dubbo-go/protocol/rest/config"
)
func TestRestConfigReader_ReadConsumerConfig(t *testing.T) {
bs, err := yaml.LoadYMLConfig("./testdata/consumer_config.yml")
assert.NoError(t, err)
......
......@@ -20,8 +20,6 @@ package server_impl
import (
"context"
"fmt"
"github.com/apache/dubbo-go/protocol/rest/config"
"github.com/apache/dubbo-go/protocol/rest/server"
"net"
"net/http"
"reflect"
......@@ -42,6 +40,8 @@ import (
"github.com/apache/dubbo-go/common/logger"
"github.com/apache/dubbo-go/protocol"
"github.com/apache/dubbo-go/protocol/invocation"
"github.com/apache/dubbo-go/protocol/rest/config"
"github.com/apache/dubbo-go/protocol/rest/server"
)
func init() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment