Skip to content

Commit

Permalink
move meshs erde
Browse files Browse the repository at this point in the history
  • Loading branch information
raffaeleragni committed Dec 29, 2023
1 parent 45e7164 commit 9997ac6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ mod bundle_fix;
mod client;
mod lib_priv;
mod logging;
mod mesh_serde;
mod networking;
mod proto;
mod proto_serde;
Expand Down
File renamed without changes.
12 changes: 5 additions & 7 deletions src/networking/assets/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
mod mesh_serde;

use std::{
net::{SocketAddr, ToSocketAddrs},
sync::{
Expand All @@ -7,18 +9,14 @@ use std::{
time::Duration,
};

use crate::{lib_priv::SyncTrackerRes, proto::SyncAssetType};
use bevy::utils::Uuid;
use bevy::{prelude::*, utils::HashMap};
use mesh_serde::{bin_to_mesh, mesh_to_bin};
use std::io::Read;
use threadpool::ThreadPool;
use tiny_http::{Request, Response, Server};

use crate::{
lib_priv::SyncTrackerRes,
mesh_serde::{bin_to_mesh, mesh_to_bin},
proto::SyncAssetType,
};

pub(crate) fn init(app: &mut App, addr: std::net::IpAddr, port: u16) {
let thread_count = 1;
debug!(
Expand Down Expand Up @@ -126,7 +124,7 @@ impl SyncAssetTransfer {
});
}

pub(crate) fn serve(&mut self, _: SyncAssetType, id: &Uuid, mesh: &Mesh) {
pub(crate) fn serve(&mut self, _: SyncAssetType, id: &Uuid, mesh: &Mesh) {
let mut lock = self.meshes.write();
loop {
match lock {
Expand Down

0 comments on commit 9997ac6

Please sign in to comment.