You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// WARNING: This key wasn't supposed to include value.dimension in the tuple but it was different from the key used in persistent database most likely a bug.
149
+
// WARNING: This key wasn't supposed to include value.dimension in the tuple, but it was different from the key used in persistent database most likely a bug.
150
150
let key = hash((value.dimension.as_ref().unwrap(), value.x_pos, value.z_pos));
151
151
152
152
// Insert chunk into persistent database
@@ -238,8 +238,7 @@ impl Database {
238
238
// Else check persistent database and load it into cache
239
239
}else{
240
240
let res = spawn_blocking(move || Self::get_chunk_from_database(&db,&key))
241
-
.await
242
-
.unwrap();
241
+
.await?;
243
242
244
243
// WARNING: The previous logic was to order the chunk to be loaded into cache whether it existed or not.
245
244
// This has been replaced by directly loading the queried chunk into cache
// WARNING: This key wasn't supposed to include value.dimension in the tuple but it was different from the key used in persistent database most likely a bug.
278
+
// WARNING: This key wasn't supposed to include value.dimension in the tuple, but it was different from the key used in persistent database most likely a bug.
280
279
let key = hash((value.dimension.as_ref().unwrap(), value.x_pos, value.z_pos));
281
280
282
281
// Insert new chunk state into persistent database
0 commit comments