Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmasi committed Jul 26, 2024
1 parent ea68a17 commit 49dfbf2
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
3 changes: 2 additions & 1 deletion proto/forward.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ message ForwardConfig {
}

// Wire is a connection between two endpoints intended to forward
// data bidirectionally between them. One of the endpoints must be of type Interface.
// data bidirectionally between them. One of the endpoints must be
// of type Interface.
message Wire {
// The a endpoint serves as the client endpoint in the bidirectional stream.
Endpoint a = 1;
Expand Down
3 changes: 2 additions & 1 deletion proto/forward/forward.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion x/wire/file/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ func main() {
if err != nil {
log.Fatalf("Failed to dial %q: %v", *addr, err)
}
defer conn.Close()
c := wpb.NewWireClient(conn)
g := new(errgroup.Group)
for e, w := range endpoints {
Expand Down
2 changes: 1 addition & 1 deletion x/wire/forward/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ COPY proto/ proto/

RUN go build -o forward x/wire/forward/main.go

ENTRYPOINT ./forward
ENTRYPOINT ["./forward"]
1 change: 0 additions & 1 deletion x/wire/intf/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ func main() {
if err != nil {
log.Fatalf("Failed to dial %q: %v", *addr, err)
}
defer conn.Close()
c := wpb.NewWireClient(conn)
g := new(errgroup.Group)
for e, w := range endpoints {
Expand Down
6 changes: 3 additions & 3 deletions x/wire/wire_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ func TestTransmit(t *testing.T) {
}
rw := NewFakeReadWriter(rwSrc)
sSrc := []*wpb.Packet{
&wpb.Packet{Data: []byte("sSrc1")},
&wpb.Packet{Data: []byte("sSrc2")},
&wpb.Packet{Data: []byte("sSrc3")},
{Data: []byte("sSrc1")},
{Data: []byte("sSrc2")},
{Data: []byte("sSrc3")},
}
s := NewFakeStream(sSrc)
w := NewWire(rw)
Expand Down

0 comments on commit 49dfbf2

Please sign in to comment.