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

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
sshaplygin authored and googollee committed May 11, 2021
1 parent dc611ea commit 4d4df9e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/.idea
/.vscode
*.o
*.out
profile.cov
*.prof
*.svg
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ lint:
golangci-lint run --config=.golangci.yml ./...

cover:
go clean -testcache && go test ./... -cover -coverprofile=c.o && go tool cover -html=c.o
go clean -testcache && go test ./... -cover -coverprofile=c.out && go tool cover -html=c.out
4 changes: 2 additions & 2 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ type conn struct {
encoder *parser.Encoder
decoder *parser.Decoder

errorChan chan error
writeChan chan parser.Payload
errorChan chan error
quitChan chan struct{}

closeOnce sync.Once
Expand Down Expand Up @@ -211,7 +211,7 @@ func (c *conn) serveRead() {
}

var err error
switch header.Type{
switch header.Type {
case parser.Ack, parser.Connect, parser.Disconnect:
handler, ok := readHandlerMapping[header.Type]
if !ok {
Expand Down

0 comments on commit 4d4df9e

Please sign in to comment.