ssb: Ease up on excessively re-hitting the database for ebt.replicate even more.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 23m20s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 23m20s
This commit is contained in:
@ -27,6 +27,8 @@ typedef struct _tf_ssb_ebt_t
|
||||
|
||||
ebt_entry_t* entries;
|
||||
int entries_count;
|
||||
|
||||
int send_clock_pending;
|
||||
} tf_ssb_ebt_t;
|
||||
|
||||
tf_ssb_ebt_t* tf_ssb_ebt_create(tf_ssb_connection_t* connection)
|
||||
@ -308,3 +310,13 @@ void tf_ssb_ebt_set_messages_sent(tf_ssb_ebt_t* ebt, const char* id, int64_t seq
|
||||
}
|
||||
uv_mutex_unlock(&ebt->mutex);
|
||||
}
|
||||
|
||||
int tf_ssb_ebt_get_send_clock_pending(tf_ssb_ebt_t* ebt)
|
||||
{
|
||||
return ebt->send_clock_pending;
|
||||
}
|
||||
|
||||
void tf_ssb_ebt_set_send_clock_pending(tf_ssb_ebt_t* ebt, int pending)
|
||||
{
|
||||
ebt->send_clock_pending = pending;
|
||||
}
|
||||
|
Reference in New Issue
Block a user