Fix regression in reading stratum messages (#2450)
It was introduced in #2418, it turns out std read_line always appends to the string, not writes from the beginning, so when we have multiple workers to read from all messages are concatenated
This commit is contained in:
committed by
Ignotus Peverell
parent
f8aab05d76
commit
55f4ee3166
@@ -301,6 +301,8 @@ impl StratumServer {
|
||||
}
|
||||
};
|
||||
|
||||
the_message.clear();
|
||||
|
||||
let mut stratum_stats = stratum_stats.write();
|
||||
let worker_stats_id = stratum_stats
|
||||
.worker_stats
|
||||
|
||||
Reference in New Issue
Block a user