diff options
author | Felix Lange <fjl@twurst.com> | 2014-10-16 17:50:10 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2014-10-17 23:23:29 +0800 |
commit | fd9b03a431a9b8bb28a5b681f97e0b2d18ef7a3e (patch) | |
tree | 566005d81fe6bcb21d148ad024c17955c47142a3 /websocket | |
parent | c090a77f1c9bc890e67a00fb47a1c23c8769799d (diff) | |
download | go-tangerine-fd9b03a431a9b8bb28a5b681f97e0b2d18ef7a3e.tar go-tangerine-fd9b03a431a9b8bb28a5b681f97e0b2d18ef7a3e.tar.gz go-tangerine-fd9b03a431a9b8bb28a5b681f97e0b2d18ef7a3e.tar.bz2 go-tangerine-fd9b03a431a9b8bb28a5b681f97e0b2d18ef7a3e.tar.lz go-tangerine-fd9b03a431a9b8bb28a5b681f97e0b2d18ef7a3e.tar.xz go-tangerine-fd9b03a431a9b8bb28a5b681f97e0b2d18ef7a3e.tar.zst go-tangerine-fd9b03a431a9b8bb28a5b681f97e0b2d18ef7a3e.zip |
ethlog: fix concurrency
Rather than spawning a new goroutine for each message,
run each log system in a dedicated goroutine.
Ensure that logging is still asynchronous by using a per-system buffer
(currently 500 messages). If it overflows all logging will hang,
but that's better than spawning indefinitely many goroutines.
Diffstat (limited to 'websocket')
0 files changed, 0 insertions, 0 deletions