Unverified Commit 5b7d8d26 authored by Xin.Zh's avatar Xin.Zh Committed by GitHub

Merge pull request #69 from Mulavar/imports-fmt

style(*): format all imports with dubbogo/tools/imports-formatter
parents 168f412b 3ea0e197
...@@ -30,11 +30,14 @@ import ( ...@@ -30,11 +30,14 @@ import (
) )
import ( import (
getty "github.com/apache/dubbo-getty"
"github.com/dubbogo/gost/sync" "github.com/dubbogo/gost/sync"
"github.com/montanaflynn/stats" "github.com/montanaflynn/stats"
) )
import (
getty "github.com/apache/dubbo-getty"
)
var ( var (
concurrency = flag.Int("c", 1, "concurrency") concurrency = flag.Int("c", 1, "concurrency")
total = flag.Int("n", 1, "total requests for all clients") total = flag.Int("n", 1, "total requests for all clients")
......
...@@ -28,10 +28,13 @@ import ( ...@@ -28,10 +28,13 @@ import (
) )
import ( import (
getty "github.com/apache/dubbo-getty"
"github.com/dubbogo/gost/sync" "github.com/dubbogo/gost/sync"
) )
import (
getty "github.com/apache/dubbo-getty"
)
var ( var (
concurrency = flag.Int("c", 1, "concurrency") concurrency = flag.Int("c", 1, "concurrency")
total = flag.Int("n", 1, "total requests for all clients") total = flag.Int("n", 1, "total requests for all clients")
......
...@@ -33,10 +33,13 @@ import ( ...@@ -33,10 +33,13 @@ import (
) )
import ( import (
getty "github.com/apache/dubbo-getty"
gxsync "github.com/dubbogo/gost/sync" gxsync "github.com/dubbogo/gost/sync"
) )
import (
getty "github.com/apache/dubbo-getty"
)
var ( var (
taskPoolMode = flag.Bool("taskPool", false, "task pool mode") taskPoolMode = flag.Bool("taskPool", false, "task pool mode")
taskPoolSize = flag.Int("task_pool_size", 2000, "task poll size") taskPoolSize = flag.Int("task_pool_size", 2000, "task poll size")
......
...@@ -25,7 +25,9 @@ import ( ...@@ -25,7 +25,9 @@ import (
"net" "net"
"sync" "sync"
"time" "time"
)
import (
"github.com/golang/snappy" "github.com/golang/snappy"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
perrors "github.com/pkg/errors" perrors "github.com/pkg/errors"
......
...@@ -22,11 +22,11 @@ import ( ...@@ -22,11 +22,11 @@ import (
) )
import ( import (
"github.com/apache/dubbo-getty"
"github.com/dubbogo/gost/sync" "github.com/dubbogo/gost/sync"
) )
import ( import (
"github.com/apache/dubbo-getty"
"github.com/apache/dubbo-getty/demo/hello" "github.com/apache/dubbo-getty/demo/hello"
"github.com/apache/dubbo-getty/demo/hello/tcp" "github.com/apache/dubbo-getty/demo/hello/tcp"
"github.com/apache/dubbo-getty/demo/util" "github.com/apache/dubbo-getty/demo/util"
......
...@@ -25,9 +25,6 @@ import ( ...@@ -25,9 +25,6 @@ import (
import ( import (
"github.com/apache/dubbo-getty" "github.com/apache/dubbo-getty"
)
import (
"github.com/apache/dubbo-getty/demo/hello" "github.com/apache/dubbo-getty/demo/hello"
) )
......
...@@ -22,11 +22,11 @@ import ( ...@@ -22,11 +22,11 @@ import (
) )
import ( import (
"github.com/apache/dubbo-getty"
gxsync "github.com/dubbogo/gost/sync" gxsync "github.com/dubbogo/gost/sync"
) )
import ( import (
"github.com/apache/dubbo-getty"
"github.com/apache/dubbo-getty/demo/hello/tcp" "github.com/apache/dubbo-getty/demo/hello/tcp"
"github.com/apache/dubbo-getty/demo/util" "github.com/apache/dubbo-getty/demo/util"
) )
......
...@@ -24,9 +24,6 @@ import ( ...@@ -24,9 +24,6 @@ import (
import ( import (
"github.com/apache/dubbo-getty" "github.com/apache/dubbo-getty"
)
import (
"github.com/apache/dubbo-getty/demo/hello" "github.com/apache/dubbo-getty/demo/hello"
) )
......
...@@ -17,11 +17,9 @@ ...@@ -17,11 +17,9 @@
package getty package getty
import gxsync "github.com/dubbogo/gost/sync" import (
gxsync "github.com/dubbogo/gost/sync"
///////////////////////////////////////// )
// Server Options
/////////////////////////////////////////
type ServerOption func(*ServerOptions) type ServerOption func(*ServerOptions)
......
...@@ -32,7 +32,6 @@ import ( ...@@ -32,7 +32,6 @@ import (
gxbytes "github.com/dubbogo/gost/bytes" gxbytes "github.com/dubbogo/gost/bytes"
gxcontext "github.com/dubbogo/gost/context" gxcontext "github.com/dubbogo/gost/context"
gxtime "github.com/dubbogo/gost/time" gxtime "github.com/dubbogo/gost/time"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
perrors "github.com/pkg/errors" perrors "github.com/pkg/errors"
uatomic "go.uber.org/atomic" uatomic "go.uber.org/atomic"
......
Markdown is supported
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