Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

claim repo is not thread safe #28

Closed
tranvictor opened this issue May 23, 2017 · 1 comment
Closed

claim repo is not thread safe #28

tranvictor opened this issue May 23, 2017 · 1 comment

Comments

@tranvictor
Copy link
Member

No description provided.

@tranvictor
Copy link
Member Author

fatal error: .concurrent map iteration and map write

goroutine 31 [running]:
runtime.throw(0x9e2361, 0x26)
        /usr/lib/go-1.8/src/runtime/panic.go:596 +0x95 fp=0xc421460d20 sp=0xc421460d00
runtime.mapiternext(0xc421460f18)
        /usr/lib/go-1.8/src/runtime/hashmap.go:737 +0x7ee fp=0xc421460dd0 sp=0xc421460d20
github.com/SmartPool/smartpool-client/ethereum.(*TimestampClaimRepo).Persist(0xc420743c20, 0xe98c60, 0xc4200d7580, 0x2, 0xc4207efd80)
        /home/eth10ai/smartpool-client/build/_workspace/src/github.com/SmartPool/smartpool-client/ethereum/timestamp_claim_repo.go:179 +0x379 fp=0xc421460f88 sp=0xc421460dd0
github.com/SmartPool/smartpool-client/protocol.(*SmartPool).persist(0xc420088240)
        /home/eth10ai/smartpool-client/build/_workspace/src/github.com/SmartPool/smartpool-client/protocol/smartpool.go:255 +0x4a fp=0xc421460fc0 sp=0xc421460f88
github.com/SmartPool/smartpool-client/protocol.(*SmartPool).runPersister(0xc420088240)
        /home/eth10ai/smartpool-client/build/_workspace/src/github.com/SmartPool/smartpool-client/protocol/smartpool.go:249 +0x2b fp=0xc421460fd8 sp=0xc421460fc0
runtime.goexit()
        /usr/lib/go-1.8/src/runtime/asm_amd64.s:2197 +0x1 fp=0xc421460fe0 sp=0xc421460fd8
created by github.com/SmartPool/smartpool-client/protocol.(*SmartPool).Run
        /home/eth10ai/smartpool-client/build/_workspace/src/github.com/SmartPool/smartpool-client/protocol/smartpool.go:317 +0x2a0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant