mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
Use parallelism
This commit is contained in:
parent
b710ad9568
commit
32ed5ba45d
1 changed files with 2 additions and 0 deletions
|
|
@ -6,9 +6,11 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/bzz"
|
"github.com/ethereum/go-ethereum/bzz"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
"runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||||
|
|
||||||
if len(os.Args) < 2 {
|
if len(os.Args) < 2 {
|
||||||
fmt.Println("Usage: bzzhash <file name>")
|
fmt.Println("Usage: bzzhash <file name>")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue