More work.
Added chat service Updated packet service to pass the tcp stream around in a Arc type. Updated character position data to not require multiplying the coords Added more debug logs Added an interceptor for gRPC comms with the chat server Updated build and push script for the chat server changes
This commit is contained in:
16
chat-service/build.rs
Normal file
16
chat-service/build.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
fn main() {
|
||||
// gRPC Server code
|
||||
tonic_build::configure()
|
||||
.build_server(true) // Generate gRPC server code
|
||||
.compile_well_known_types(true)
|
||||
.type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]")
|
||||
.compile_protos(&["../proto/chat.proto"], &["../proto"])
|
||||
.unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e));
|
||||
|
||||
// gRPC Client code
|
||||
// tonic_build::configure()
|
||||
// .build_server(false) // Generate gRPC client code
|
||||
// .compile_well_known_types(true)
|
||||
// .compile_protos(&["../proto/user_db_api.proto", "../proto/auth.proto"], &["../proto"])
|
||||
// .unwrap_or_else(|e| panic!("Failed to compile protos {:?}", e));
|
||||
}
|
||||
Reference in New Issue
Block a user