Skip to content

Commit

Permalink
use go 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny2022da committed Mar 11, 2024
1 parent 76b965a commit e2695a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG VERSION=""
ARG BUILDNUM=""

# Build Geth in a stock Go builder container
FROM golang:1.21-alpine as builder
FROM golang:1.20-alpine as builder

RUN apk add --no-cache build-base libc-dev
RUN apk add --no-cache gcc musl-dev linux-headers git
Expand Down
5 changes: 4 additions & 1 deletion core/opcodeCompiler/compiler/opcodeProcessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ func GetOpcodeProcessorInstance() *OpcodeProcessor {
taskChannel: make(chan optimizeTask, taskChannelSize),
}
// start task processors.
taskNumber := max(runtime.NumCPU()*3/8, 1)
taskNumber := runtime.NumCPU() * 3 / 8
if taskNumber < 1 {
taskNumber = 1
}

for i := 0; i < taskNumber; i++ {
go opcodeProcessor.taskProcessor()
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
module github.com/ethereum/go-ethereum

go 1.21
go 1.20

toolchain go1.21.4

require (
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0
Expand Down

0 comments on commit e2695a3

Please sign in to comment.