[object Object]

← back to Exo

refactor: Remove timestamp from Wrapped Events

c456934342451ed71f75c5b5c0a7ab0c0568fe1c · 2025-07-03 13:05:35 +0100 · Arbion Halili

Files touched

Diff

commit c456934342451ed71f75c5b5c0a7ab0c0568fe1c
Author: Arbion Halili <99731180+ToxicPine@users.noreply.github.com>
Date:   Thu Jul 3 13:05:35 2025 +0100

    refactor: Remove timestamp from Wrapped Events
---
 shared/types/events/common.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/shared/types/events/common.py b/shared/types/events/common.py
index fd2e0842..1663fae8 100644
--- a/shared/types/events/common.py
+++ b/shared/types/events/common.py
@@ -1,4 +1,3 @@
-import time
 from enum import Enum
 from typing import (
     Annotated,
@@ -94,7 +93,6 @@ class Event(BaseModel, SecureEventProtocol, Generic[TEventType]):
 class WrappedEvent(BaseModel, Generic[TEventType]):
     event: Event[TEventType]
     origin_id: NodeId
-    origin_timestamp: int = Field(default_factory=lambda: int(time.time()))
 
     @model_validator(mode="after")
     def check_origin_id(self) -> "WrappedEvent[TEventType]":

← 0b6aadf5 refactor: Add safe state mutation method .apply()  ·  back to Exo  ·  refactor: Distinguish the topology of the control plane from 10224d09 →