Skip to content

Commit

Permalink
build(ci): upgrade golangci version (forbole#508)
Browse files Browse the repository at this point in the history
## Description

Closes: #XXXX



---

### Author Checklist

*All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.*

I have...

- [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [x] targeted the correct branch
- [ ] provided a link to the relevant issue or specification
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [x] reviewed "Files changed" and left comments if necessary
- [x] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*

I have...

- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)
  • Loading branch information
huichiaotsou authored Dec 16, 2022
1 parent 6823035 commit d378f58
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
.sum
- uses: golangci/[email protected]
with:
version: v1.28
version: v1.50.1
args: --timeout 10m
github-token: ${{ secrets.GITHUB_TOKEN }}
if: "env.GIT_DIFF != ''"
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## Unreleased
### Changes

#### CI
- ([\#508](https://github.com/forbole/bdjuno/pull/508)) Upgrade workflow golangci version to v1.50.1


#### Parse Command
- ([\#492](https://github.com/forbole/bdjuno/pull/492)) Add parse command for periodic tasks: `x/bank` total supply, `x/distribution` community pool, `x/mint` inflation, `pricefeed` token price and price history, `x/staking` staking pool

Expand Down
9 changes: 8 additions & 1 deletion modules/actions/types/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,14 @@ func (w *ActionsWorker) handleError(writer http.ResponseWriter, path string, err

// Start starts the worker
func (w *ActionsWorker) Start(host string, port uint) {
err := http.ListenAndServe(fmt.Sprintf("%s:%d", host, port), w.mux)
server := &http.Server{
Addr: fmt.Sprintf("%s:%d", host, port),
Handler: w.mux,
ReadHeaderTimeout: 3 * time.Second,
}

err := server.ListenAndServe()

if err != nil {
panic(err)
}
Expand Down
2 changes: 1 addition & 1 deletion modules/daily_refetch/handle_periodic_operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (m *Module) refetchMissingBlocks() error {
if err != nil {
return fmt.Errorf("error while getting block height from a day ago: %s", err)
}
var startHeight int64 = blockHeightDayAgo.Height
var startHeight = blockHeightDayAgo.Height

missingBlocks := m.database.GetMissingBlocks(startHeight, latestBlock)

Expand Down

0 comments on commit d378f58

Please sign in to comment.