Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
rustatian committed Feb 1, 2021
1 parent cd1809d commit 97d335d
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 15 deletions.
3 changes: 2 additions & 1 deletion access_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package ws

import (
"bytes"
"github.com/spiral/roadrunner/service/http/attributes"
"io"
"net/http"
"strings"

"github.com/spiral/roadrunner/service/http/attributes"
)

type accessValidator struct {
Expand Down
3 changes: 2 additions & 1 deletion access_validator_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package ws

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

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

func TestResponseWrapper_Body(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion cmd/rr-ws/ws/debug.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package ws

import (
"strings"

"github.com/gorilla/websocket"
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"
ws "github.com/spiral/broadcast-ws"
rr "github.com/spiral/roadrunner/cmd/rr/cmd"
"github.com/spiral/roadrunner/cmd/util"
"strings"
)

func init() {
Expand Down
3 changes: 2 additions & 1 deletion config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package ws

import (
"encoding/json"
"testing"

"github.com/spiral/roadrunner/service"
"github.com/stretchr/testify/assert"
"testing"
)

type mockCfg struct{ cfg string }
Expand Down
1 change: 1 addition & 0 deletions conn_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package ws

import (
"encoding/json"

"github.com/gorilla/websocket"
"github.com/spiral/broadcast"
)
Expand Down
3 changes: 2 additions & 1 deletion conn_context_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package ws

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

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

func TestConnContext_ManageTopics(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion conn_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package ws

import (
"errors"
"sync"

"github.com/gorilla/websocket"
"github.com/spiral/broadcast"
"sync"
)

// manages a set of websocket connections
Expand Down
7 changes: 4 additions & 3 deletions service.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ package ws

import (
"encoding/json"
"net/http"
"sync"
"sync/atomic"

"github.com/gorilla/websocket"
"github.com/spiral/broadcast"
"github.com/spiral/roadrunner/service/env"
rhttp "github.com/spiral/roadrunner/service/http"
"github.com/spiral/roadrunner/service/rpc"
"net/http"
"sync"
"sync/atomic"
)

// ID defines service id.
Expand Down
13 changes: 7 additions & 6 deletions service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ package ws

import (
"encoding/json"
"io/ioutil"
"net/http"
"net/url"
"strings"
"testing"
"time"

"github.com/gorilla/websocket"
"github.com/sirupsen/logrus"
"github.com/sirupsen/logrus/hooks/test"
Expand All @@ -11,12 +18,6 @@ import (
rrhttp "github.com/spiral/roadrunner/service/http"
"github.com/spiral/roadrunner/service/rpc"
"github.com/stretchr/testify/assert"
"io/ioutil"
"net/http"
"net/url"
"strings"
"testing"
"time"
)

type testCfg struct {
Expand Down

0 comments on commit 97d335d

Please sign in to comment.