Skip to content

Commit

Permalink
fix codecov (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed May 23, 2024
1 parent e5952c3 commit e5e9a6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ jobs:
run: go test -v -race -tags integration -coverprofile=coverage.out $(go list ./... | grep -v /_examples/)

- name: Upload code coverage to codecov
if: matrix.go-version == '1.22'
if: matrix.go-version == '1.22' && matrix.redis-version == 7
uses: codecov/codecov-action@v4
with:
file: ./coverage.out
token: ${{ secrets.CODECOV_TOKEN }}
5 changes: 1 addition & 4 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2944,10 +2944,7 @@ func (c *Client) subscribeCmd(req *protocol.SubscribeRequest, reply SubscribeRep
protoReply, err := c.getSubscribeCommandReply(res)
if err != nil {
c.node.logger.log(newLogEntry(LogLevelError, "error encoding subscribe", map[string]any{"error": err.Error()}))
if !serverSide {
// Will be called later in case of server side sub.
c.pubSubSync.StopBuffering(channel)
}
c.pubSubSync.StopBuffering(channel) // Will be called later in case of server side sub.
ctx.disconnect = &DisconnectServerError
return ctx
}
Expand Down

0 comments on commit e5e9a6d

Please sign in to comment.