Skip to content

Commit

Permalink
Merge pull request #29 from Piyushhbhutoria/fix/workflows
Browse files Browse the repository at this point in the history
fix failing workflows
  • Loading branch information
Piyushhbhutoria authored Sep 21, 2024
2 parents c1c4472 + 5155734 commit 0984757
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ${{ matrix.os }}
name: Build
steps:
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5.0.2
with:
go-version: '1.20'
- uses: actions/checkout@v3
go-version: '1.23'
- uses: actions/checkout@v4.1.7
- run: go mod download
- name: Build
run: go build -v .
9 changes: 4 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5.0.2
with:
go-version: '1.20'
go-version: '1.23'
cache: false
- uses: actions/checkout@v3
- uses: actions/checkout@v4.1.7
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.4.0
uses: golangci/golangci-lint-action@v6.1.0
with:
version: v1.52.2
args: --timeout 10m
4 changes: 2 additions & 2 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ func handler(rawEvt interface{}) {
}
}
case *events.Receipt:
if evt.Type == events.ReceiptTypeRead || evt.Type == events.ReceiptTypeReadSelf {
if evt.Type == types.ReceiptTypeRead || evt.Type == types.ReceiptTypeReadSelf {
log.Infof("%v was read by %s at %s", evt.MessageIDs, evt.SourceString(), evt.Timestamp)
} else if evt.Type == events.ReceiptTypeDelivered {
} else if evt.Type == types.ReceiptTypeDelivered {
log.Infof("%s was delivered to %s at %s", evt.MessageIDs[0], evt.SourceString(), evt.Timestamp)
}
case *events.Presence:
Expand Down

0 comments on commit 0984757

Please sign in to comment.