• Felix Lange's avatar
    ethlog: fix concurrency · fd9b03a4
    Felix Lange authored
    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.
    fd9b03a4
loggers.go 5.68 KB