Skip to content

Commit a7a0d89

Browse files
committed
Fix merge conflicts
1 parent f9a9e60 commit a7a0d89

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

rust/types/src/collection.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,8 @@ impl Default for Collection {
161161
version_file_path: None,
162162
root_collection_id: None,
163163
lineage_file_path: None,
164-
<<<<<<< HEAD
165164
updated_at: SystemTime::now(),
166-
=======
167165
database_id: DatabaseUuid::new(),
168-
>>>>>>> 1f8bca1d9 ([ENH]: Return database id in get collections call from sysdb)
169166
}
170167
}
171168
}
@@ -265,7 +262,6 @@ impl TryFrom<chroma_proto::Collection> for Collection {
265262
},
266263
None => None,
267264
};
268-
<<<<<<< HEAD
269265
// TODO(@codetheweb): this be updated to error with "missing field" once all SysDb deployments are up-to-date
270266
let updated_at = match proto_collection.updated_at {
271267
Some(updated_at) => {
@@ -274,10 +270,8 @@ impl TryFrom<chroma_proto::Collection> for Collection {
274270
}
275271
None => SystemTime::now(),
276272
};
277-
=======
278273
let database_id = DatabaseUuid::from_str(&proto_collection.database_id)
279274
.map_err(|_| CollectionConversionError::InvalidUuid)?;
280-
>>>>>>> 1f8bca1d9 ([ENH]: Return database id in get collections call from sysdb)
281275
Ok(Collection {
282276
collection_id,
283277
name: proto_collection.name,
@@ -296,11 +290,8 @@ impl TryFrom<chroma_proto::Collection> for Collection {
296290
.root_collection_id
297291
.map(|uuid| CollectionUuid(Uuid::try_parse(&uuid).unwrap())),
298292
lineage_file_path: proto_collection.lineage_file_path,
299-
<<<<<<< HEAD
300293
updated_at,
301-
=======
302294
database_id,
303-
>>>>>>> 1f8bca1d9 ([ENH]: Return database id in get collections call from sysdb)
304295
})
305296
}
306297
}
@@ -339,11 +330,8 @@ impl TryFrom<Collection> for chroma_proto::Collection {
339330
version_file_path: value.version_file_path,
340331
root_collection_id: value.root_collection_id.map(|uuid| uuid.0.to_string()),
341332
lineage_file_path: value.lineage_file_path,
342-
<<<<<<< HEAD
343333
updated_at: Some(value.updated_at.into()),
344-
=======
345334
database_id: value.database_id.0.to_string(),
346-
>>>>>>> 1f8bca1d9 ([ENH]: Return database id in get collections call from sysdb)
347335
})
348336
}
349337
}
@@ -392,14 +380,11 @@ mod test {
392380
version_file_path: Some("version_file_path".to_string()),
393381
root_collection_id: Some("00000000-0000-0000-0000-000000000000".to_string()),
394382
lineage_file_path: Some("lineage_file_path".to_string()),
395-
<<<<<<< HEAD
396383
updated_at: Some(prost_types::Timestamp {
397384
seconds: 1,
398385
nanos: 1,
399386
}),
400-
=======
401387
database_id: "00000000-0000-0000-0000-000000000000".to_string(),
402-
>>>>>>> 1f8bca1d9 ([ENH]: Return database id in get collections call from sysdb)
403388
};
404389
let converted_collection: Collection = proto_collection.try_into().unwrap();
405390
assert_eq!(
@@ -426,13 +411,10 @@ mod test {
426411
converted_collection.lineage_file_path,
427412
Some("lineage_file_path".to_string())
428413
);
429-
<<<<<<< HEAD
430414
assert_eq!(
431415
converted_collection.updated_at,
432416
SystemTime::UNIX_EPOCH + Duration::new(1, 1)
433417
);
434-
=======
435418
assert_eq!(converted_collection.database_id, DatabaseUuid(Uuid::nil()));
436-
>>>>>>> 1f8bca1d9 ([ENH]: Return database id in get collections call from sysdb)
437419
}
438420
}

0 commit comments

Comments
 (0)