Skip to content

Commit

Permalink
Upgrade to go 1.23 and upgrade depdendencies (#127)
Browse files Browse the repository at this point in the history
* Upgrade to go 1.23 and upgrade depdendencies

* Try go 1.22
  • Loading branch information
galt-tr authored Sep 12, 2024
1 parent 815295e commit acbfec8
Show file tree
Hide file tree
Showing 6 changed files with 183 additions and 129 deletions.
4 changes: 2 additions & 2 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pull_request_rules:
conditions:
- -draft
- author~=^dependabot(|-preview)\[bot\]$
- check-success='test (1.21.x, ubuntu-latest)'
- check-success='test (1.22.x, ubuntu-latest)'
- check-success='Analyze (go)'
actions:
review:
Expand All @@ -26,7 +26,7 @@ pull_request_rules:
- "#approved-reviews-by>=1"
- "#review-requested=0"
- "#changes-requested-reviews-by=0"
- check-success='test (1.21.x, ubuntu-latest)'
- check-success='test (1.22.x, ubuntu-latest)'
- check-success='Analyze (go)'
- -title~=(?i)wip
- label!=work-in-progress
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: release

env:
GO111MODULE: on
GO_VERSION: 1.21
GO_VERSION: 1.22

on:
push:
Expand Down Expand Up @@ -137,4 +137,4 @@ jobs:
COMMIT_TAG: ${{steps.tag.outputs.tag}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Syndicate to GoDocs
run: make godocs
run: make godocs
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
needs: [yamllint]
strategy:
matrix:
go-version: [1.21.x]
go-version: [1.22.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion app/p2p/thread.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (s *StreamThread) ProcessSyncMessage(ctx context.Context) error {
for {
b, err := wire.ReadVarBytes(s.stream, 0, math.MaxUint64, config.ApplicationName)
if err != nil {
if s.stream.Conn().IsClosed() || s.stream.Stat().Transient {
if s.stream.Conn().IsClosed() {
done <- nil
return
}
Expand Down
91 changes: 43 additions & 48 deletions go.mod

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

Loading

0 comments on commit acbfec8

Please sign in to comment.