dev: increase revision for compile request (#435)

This commit is contained in:
Myriad-Dreamin 2024-07-19 13:29:46 +08:00 committed by GitHub
parent 755979f2bb
commit bb9ba23b3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -600,7 +600,12 @@ impl<F: CompilerFeat + Send + Sync + 'static> CompileServerActor<F> {
use CompilerResponse::*;
match event {
Interrupt::Compile => reason_by_entry_change(),
Interrupt::Compile => {
// Increment the revision anyway.
self.verse.increment_revision(|_| {});
reason_by_entry_change()
}
Interrupt::Snapshot(task) => {
log::debug!("CompileServerActor: take snapshot");
if self