Skip to content

Commit

Permalink
style(getty): format package getty imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjianhui03 committed Aug 13, 2021
1 parent f9237b0 commit 292bd02
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 3 deletions.
1 change: 1 addition & 0 deletions remoting/getty/dubbo_codec_for_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (

import (
hessian "github.com/apache/dubbo-go-hessian2"

perrors "github.com/pkg/errors"
)

Expand Down
6 changes: 5 additions & 1 deletion remoting/getty/getty_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,21 @@
package getty

import (
gxtime "github.com/dubbogo/gost/time"
"math/rand"
"sync"
"time"
)

import (
"github.com/apache/dubbo-getty"

gxsync "github.com/dubbogo/gost/sync"
gxtime "github.com/dubbogo/gost/time"

perrors "github.com/pkg/errors"

"go.uber.org/atomic"

"gopkg.in/yaml.v2"
)

Expand Down
4 changes: 3 additions & 1 deletion remoting/getty/getty_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ import (

import (
hessian "github.com/apache/dubbo-go-hessian2"

perrors "github.com/pkg/errors"

"github.com/stretchr/testify/assert"
)

Expand Down Expand Up @@ -435,7 +437,7 @@ func (u *UserProvider) GetUser(ctx context.Context, req []interface{}, rsp *User

func (u *UserProvider) GetUser0(id string, k *User, name string) (User, error) {
// fix testClient_AsyncCall assertion bug(#1233)
//time.Sleep(1 * time.Second)
time.Sleep(1 * time.Second)
return User{ID: id, Name: name}, nil
}

Expand Down
3 changes: 3 additions & 0 deletions remoting/getty/getty_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ import (

import (
"github.com/apache/dubbo-getty"

gxsync "github.com/dubbogo/gost/sync"

perrors "github.com/pkg/errors"

"gopkg.in/yaml.v2"
)

Expand Down
5 changes: 4 additions & 1 deletion remoting/getty/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@ package getty

import (
"fmt"
gxtime "github.com/dubbogo/gost/time"
"sync"
"sync/atomic"
"time"
)

import (
"github.com/apache/dubbo-getty"

hessian "github.com/apache/dubbo-go-hessian2"

gxtime "github.com/dubbogo/gost/time"

perrors "github.com/pkg/errors"
)

Expand Down
1 change: 1 addition & 0 deletions remoting/getty/listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
import (
"github.com/opentracing/opentracing-go"
"github.com/opentracing/opentracing-go/mocktracer"

"github.com/stretchr/testify/assert"
)

Expand Down
1 change: 1 addition & 0 deletions remoting/getty/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import (

import (
"github.com/apache/dubbo-getty"

perrors "github.com/pkg/errors"
)

Expand Down
2 changes: 2 additions & 0 deletions remoting/getty/readwriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ import (

import (
"github.com/apache/dubbo-getty"

hessian "github.com/apache/dubbo-go-hessian2"

perrors "github.com/pkg/errors"
)

Expand Down
1 change: 1 addition & 0 deletions remoting/getty/readwriter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (

import (
hessian "github.com/apache/dubbo-go-hessian2"

"github.com/stretchr/testify/assert"
)

Expand Down

0 comments on commit 292bd02

Please sign in to comment.