Skip to content

Commit

Permalink
format imports
Browse files Browse the repository at this point in the history
  • Loading branch information
fionera committed Oct 8, 2023
1 parent 291f3da commit ff413dc
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 13 deletions.
3 changes: 2 additions & 1 deletion pkg/encoding/actionwriter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package encoding

import (
"fmt"
"github.com/dropmorepackets/haproxy-go/pkg/testutil"
"testing"

"github.com/dropmorepackets/haproxy-go/pkg/testutil"
)

func TestActionWriter(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion pkg/encoding/kvwriter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package encoding

import (
"fmt"
"github.com/dropmorepackets/haproxy-go/pkg/testutil"
"testing"

"github.com/dropmorepackets/haproxy-go/pkg/testutil"
)

func TestKVWriter(t *testing.T) {
Expand Down
4 changes: 4 additions & 0 deletions spop/benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ https://github.com/babiel/haproxy-spoe-go
Tested and compared via benchstat (thx to https://www.rodolfocarvalho.net/blog/go-test-bench-pipe-to-benchstat/)

go test -run='^$' -bench=. -benchmem -count=5 | tee >(benchstat /dev/stdin)

---

MacBookPro18,4 with M1 Max:

```
goos: darwin
goarch: arm64
Expand Down Expand Up @@ -63,7 +65,9 @@ geomean ²
¹ need >= 6 samples for confidence interval at level 0.95
² summaries must be >0 to compute geomean
```

---

```
goos: linux
goarch: amd64
Expand Down
3 changes: 2 additions & 1 deletion spop/benchmarks/benchmarks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (
"testing"

criteo "github.com/criteo/haproxy-spoe-go"
"github.com/dropmorepackets/haproxy-go/pkg/encoding"
"github.com/negasus/haproxy-spoe-go/message"

"github.com/dropmorepackets/haproxy-go/pkg/encoding"
)

var (
Expand Down
5 changes: 3 additions & 2 deletions spop/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ package spop
import (
"context"
"fmt"
"github.com/dropmorepackets/haproxy-go/pkg/encoding"
"github.com/dropmorepackets/haproxy-go/pkg/testutil"
"net/http"
"testing"
"time"

"github.com/dropmorepackets/haproxy-go/pkg/encoding"
"github.com/dropmorepackets/haproxy-go/pkg/testutil"
)

func TestE2E(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions spop/examples/header-to-body/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package main

import (
"context"
"github.com/dropmorepackets/haproxy-go/pkg/encoding"
"github.com/dropmorepackets/haproxy-go/spop"
"log"
"net/http"
_ "net/http/pprof"

"github.com/dropmorepackets/haproxy-go/pkg/encoding"
"github.com/dropmorepackets/haproxy-go/spop"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion spop/frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package spop
import (
"encoding/binary"
"fmt"
"github.com/dropmorepackets/haproxy-go/pkg/buffer"
"io"
"sync"

"github.com/dropmorepackets/haproxy-go/pkg/buffer"

"github.com/dropmorepackets/haproxy-go/pkg/encoding"
)

Expand Down
3 changes: 2 additions & 1 deletion spop/frames.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package spop

import (
"github.com/dropmorepackets/haproxy-go/pkg/encoding"
"io"
"strings"

"github.com/dropmorepackets/haproxy-go/pkg/encoding"
)

type frameFlag uint32
Expand Down
1 change: 1 addition & 0 deletions spop/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package spop

import (
"context"

"github.com/dropmorepackets/haproxy-go/pkg/encoding"
)

Expand Down
6 changes: 4 additions & 2 deletions spop/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import (
"context"
"errors"
"fmt"
"github.com/adrianbrad/queue"
"github.com/dropmorepackets/haproxy-go/pkg/encoding"
"io"
"log"
"runtime"

"github.com/adrianbrad/queue"

"github.com/dropmorepackets/haproxy-go/pkg/encoding"
)

type asyncScheduler struct {
Expand Down
5 changes: 3 additions & 2 deletions spop/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package spop
import (
"context"
"encoding/binary"
"github.com/dropmorepackets/haproxy-go/pkg/encoding"
"github.com/dropmorepackets/haproxy-go/pkg/testutil"
"io"
"log"
"math/rand"
"testing"
"time"

"github.com/dropmorepackets/haproxy-go/pkg/encoding"
"github.com/dropmorepackets/haproxy-go/pkg/testutil"
)

func TestFakeCon(t *testing.T) {
Expand Down

0 comments on commit ff413dc

Please sign in to comment.