Skip to content

Commit 14bf911

Browse files
nipunn1313Convex, Inc.
authored andcommitted
Remove option from serialized import requestor (#31090)
GitOrigin-RevId: 2cd0824e2ef878b39287b6790075423d7468c35e
1 parent 321e53e commit 14bf911

File tree

1 file changed

+3
-6
lines changed
  • crates/model/src/snapshot_imports

1 file changed

+3
-6
lines changed

crates/model/src/snapshot_imports/types.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct SerializedSnapshotImport {
3838
object_key: String,
3939
member_id: Option<i64>,
4040
checkpoints: Option<Vec<SerializedImportTableCheckpoint>>,
41-
requestor: Option<SerializedImportRequestor>,
41+
requestor: SerializedImportRequestor,
4242
}
4343

4444
impl From<SnapshotImport> for SerializedSnapshotImport {
@@ -53,7 +53,7 @@ impl From<SnapshotImport> for SerializedSnapshotImport {
5353
checkpoints: import
5454
.checkpoints
5555
.map(|checkpoints| checkpoints.into_iter().map(Into::into).collect()),
56-
requestor: Some(import.requestor.into()),
56+
requestor: import.requestor.into(),
5757
}
5858
}
5959
}
@@ -73,10 +73,7 @@ impl TryFrom<SerializedSnapshotImport> for SnapshotImport {
7373
.checkpoints
7474
.map(|checkpoints| checkpoints.into_iter().map(TryInto::try_into).try_collect())
7575
.transpose()?,
76-
requestor: import
77-
.requestor
78-
.unwrap_or(SerializedImportRequestor::SnapshotImport)
79-
.into(),
76+
requestor: import.requestor.into(),
8077
})
8178
}
8279
}

0 commit comments

Comments
 (0)