wormhole-entropybitcom/node/pkg/common
Chirantan Ekbote 4712a6f774 node/pkg/common: Fix race condition in PostObservationRequest
Any goroutine can push into a channel so the current implementation has
a race condition where the channel can become full immediately after the
length check, causing the subsequent send on the channel to block.

Fix this by wrapping the send on the channel with a select block.
Control will fall through to the default case only if the actual send
operation blocks, avoiding the potential race with other goroutines.
2022-08-24 17:59:42 +09:00
..
chainlock.go Chain governor (#1277) 2022-07-19 14:08:06 -04:00
chainlock_test.go Chain governor (#1277) 2022-07-19 14:08:06 -04:00
devnet_consts.go node/pkg/common: Refactor KnownEmitters 2022-07-15 10:34:27 -04:00
ethish.go Initial rough draft 2022-06-07 10:36:12 -04:00
grpc.go Better lint and formatting (#1263) 2022-06-21 12:18:16 -07:00
guardianset.go send guardian set data to prometheus 2022-03-18 10:49:34 -05:00
guardianset_test.go Better lint and formatting (#1263) 2022-06-21 12:18:16 -07:00
mainnet_consts.go Algorand mainnet deploy (#1434) 2022-08-16 10:14:48 -05:00
nodekey.go Better lint and formatting (#1263) 2022-06-21 12:18:16 -07:00
nodekey_test.go gosec fixes (#1201) 2022-05-20 08:09:48 -07:00
obsvReqSendC.go node/pkg/common: Fix race condition in PostObservationRequest 2022-08-24 17:59:42 +09:00
obsvReqSendC_test.go node/pkg/common: Fix race condition in PostObservationRequest 2022-08-24 17:59:42 +09:00
readiness.go node: add near support (#1397) 2022-08-05 13:49:16 -04:00
symmetric.go node/cmd: add public telemetry for logs 2022-01-11 15:10:12 +01:00
symmetric_test.go Better lint and formatting (#1263) 2022-06-21 12:18:16 -07:00
sysutils.go Better lint and formatting (#1263) 2022-06-21 12:18:16 -07:00
testnet_consts.go node/pkg/common: Refactor KnownEmitters 2022-07-15 10:34:27 -04:00