mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 16:23:12 +09:00
Add unit tests
This commit is contained in:
3 files changed
+649
-2
No files matched your search
@@ -240,6 +240,7 @@ export class SubscribableDatastore<
|
||||
// Set the value in the datastore, be careful of race conditions if you await any functions before calling set
|
||||
set(value: V) {
|
||||
this.data.set(value.id, value);
|
||||
value.updatedAtMs = Date.now();
|
||||
this.touch([value]);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user