Freshen streams when we write to them

This commit is contained in:
flamingcow
2019-05-12 08:56:57 -07:00
parent d29157c1ac
commit b079f48367
3 changed files with 15 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ void Stream::OnClose(const std::function<void()>& callback) {
bool Stream::WriteEvent(const std::string& data, uint64_t id, const std::string& type) {
{
std::lock_guard l(mu_);
last_message_time_ = std::chrono::steady_clock::now();
index_->Freshen(this);
}
return request_->InTransaction<bool>([=]() {