Fix regression in reading stratum messages
It was introduced in 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
@@ -301,6 +301,8 @@ impl StratumServer {
}
};
+ the_message.clear();
+
let mut stratum_stats = stratum_stats.write();
let worker_stats_id = stratum_stats
.worker_stats
