Skip to content

Commit cd04643

Browse files
Merge remote-tracking branch 'origin' into autotls-v2
2 parents b756dbe + d5a095c commit cd04643

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed

.github/workflows/go.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ jobs:
7575
- name: Commit linting
7676
if: github.ref != 'refs/heads/master'
7777
uses: wagoid/commitlint-github-action@v5
78+
with:
79+
configFile: commitlint.config.js
7880
- name: GolangCI-Lint
7981
uses: golangci/golangci-lint-action@v8
8082
with:

.github/workflows/pr-title.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: PR Title Lint
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, edited]
6+
7+
jobs:
8+
lint-title:
9+
name: Lint PR Title
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Setup Node
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '20'
18+
- name: Install commitlint
19+
run: npm install --save-dev @commitlint/cli @commitlint/config-conventional
20+
- name: PR title linting
21+
env:
22+
PR_TITLE: ${{ github.event.pull_request.title }}
23+
run: echo "$PR_TITLE" | npx commitlint --config ./commitlint.config.js

pkg/node/node.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,9 +1164,9 @@ func NewBee(
11641164
detector.OnStabilized = func(t time.Time, totalCount int) {
11651165
warmupMeasurement(t, totalCount)
11661166

1167-
reserveTreshold := reserveCapacity >> 1
1167+
reserveThreshold := reserveCapacity >> 1
11681168
isFullySynced := func() bool {
1169-
return pullerService.SyncRate() == 0 && saludService.IsHealthy() && localStore.ReserveSize() >= reserveTreshold
1169+
return pullerService.SyncRate() == 0 && saludService.IsHealthy() && localStore.ReserveSize() >= reserveThreshold
11701170
}
11711171

11721172
syncCheckTicker := time.NewTicker(2 * time.Second)
@@ -1204,9 +1204,9 @@ func NewBee(
12041204
redistributionContract := redistribution.New(swarmAddress, overlayEthAddress, logger, transactionService, redistributionContractAddress, abiutil.MustParseABI(chainCfg.RedistributionABI), o.TrxDebugMode)
12051205

12061206
isFullySynced := func() bool {
1207-
reserveTreshold := reserveCapacity * 5 / 10
1207+
reserveThreshold := reserveCapacity * 5 / 10
12081208
logger.Debug("Sync status check evaluated", "stabilized", detector.IsStabilized())
1209-
return localStore.ReserveSize() >= reserveTreshold && pullerService.SyncRate() == 0 && detector.IsStabilized()
1209+
return localStore.ReserveSize() >= reserveThreshold && pullerService.SyncRate() == 0 && detector.IsStabilized()
12101210
}
12111211

12121212
agent, err = storageincentives.New(

0 commit comments

Comments
 (0)