Skip to content

Commit

Permalink
feat: changes on wit protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
SachaMorard committed Oct 8, 2024
1 parent 0652975 commit 3782db2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions src/proxy/compute/data_collection/components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,9 @@ pub async fn send_data_collection(p: &Payload) -> anyhow::Result<()> {
.unwrap_or_default(),
session_count: p.session.clone().unwrap_or_default().session_count,
session_start: p.session.clone().unwrap_or_default().session_start,
first_seen: p.session.clone().unwrap_or_default().first_seen.to_string(),
last_seen: p.session.clone().unwrap_or_default().last_seen.to_string(),
first_seen: p.session.clone().unwrap_or_default().first_seen.timestamp(),
last_seen: p.session.clone().unwrap_or_default().last_seen.timestamp(),
},
destinations: Vec::new(),
};

for cfg in &config::get().components.data_collection {
Expand Down
7 changes: 3 additions & 4 deletions wit/protocols.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package edgee:protocols@0.1.1;
package edgee:protocols@0.1.2;

world data-collection {
export provider: interface {
Expand All @@ -18,7 +18,6 @@ world data-collection {
campaign: campaign,
client: client,
session: session,
destinations: list<tuple<string, bool>>,
}

record page-event {
Expand Down Expand Up @@ -82,8 +81,8 @@ world data-collection {
previous-session-id: string,
session-count: u32,
session-start: bool,
first-seen: string,
last-seen: string,
first-seen: s64,
last-seen: s64,
}

record edgee-request {
Expand Down

0 comments on commit 3782db2

Please sign in to comment.