p2p: add default timeouts for dht.FindPeer to prevent goroutines stuck, increase default reconnect interval from 10s to 20s #556
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: golangci-lint | |
on: [ push, pull_request ] | |
jobs: | |
golangci: | |
name: lint | |
# run job on all pushes OR external PR, not both | |
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.x | |
- name: Create stub embed files | |
run: mkdir static && touch static/index.html && touch embeds/wintun.dll | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.61 |