Skip to content
This repository was archived by the owner on Sep 29, 2024. It is now read-only.

Commit 4d4df9e

Browse files
sshaplygingoogollee
authored andcommitted
chore
1 parent dc611ea commit 4d4df9e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/.idea
66
/.vscode
77
*.o
8+
*.out
89
profile.cov
910
*.prof
1011
*.svg

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ lint:
1414
golangci-lint run --config=.golangci.yml ./...
1515

1616
cover:
17-
go clean -testcache && go test ./... -cover -coverprofile=c.o && go tool cover -html=c.o
17+
go clean -testcache && go test ./... -cover -coverprofile=c.out && go tool cover -html=c.out

connection.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ type conn struct {
3535
encoder *parser.Encoder
3636
decoder *parser.Decoder
3737

38-
errorChan chan error
3938
writeChan chan parser.Payload
39+
errorChan chan error
4040
quitChan chan struct{}
4141

4242
closeOnce sync.Once
@@ -211,7 +211,7 @@ func (c *conn) serveRead() {
211211
}
212212

213213
var err error
214-
switch header.Type{
214+
switch header.Type {
215215
case parser.Ack, parser.Connect, parser.Disconnect:
216216
handler, ok := readHandlerMapping[header.Type]
217217
if !ok {

0 commit comments

Comments
 (0)