Skip to content

Commit

Permalink
Debugging new Architecture infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
amigin committed Jan 18, 2024
1 parent 3f6305c commit 8e015c8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion my-no-sql-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.3.0"
edition = "2021"

[features]
default = []
default = ["master-node"]
master-node = []
debug_db_row = []

Expand Down
2 changes: 1 addition & 1 deletion my-no-sql-tcp-reader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ my-no-sql-abstractions = { path = "../my-no-sql-abstractions" }
my-no-sql-core = { path = "../my-no-sql-core" }

rust-extensions = { tag = "0.1.4", git = "https://github.com/MyJetTools/rust-extensions.git" }
my-tcp-sockets = { tag = "0.1.9", git = "https://github.com/MyJetTools/my-tcp-sockets.git" }
my-tcp-sockets = { branch = "main", git = "https://github.com/MyJetTools/my-tcp-sockets.git" }
my-logger = { tag = "1.1.0", git = "https://github.com/MyJetTools/my-logger.git" }
my-json = { tag = "0.2.2", git = "https://github.com/MyJetTools/my-json.git" }

Expand Down
2 changes: 1 addition & 1 deletion my-no-sql-tcp-shared/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
my-tcp-sockets = { tag = "0.1.9", git = "https://github.com/MyJetTools/my-tcp-sockets.git" }
my-tcp-sockets = { branch = "main", git = "https://github.com/MyJetTools/my-tcp-sockets.git" }
rust-extensions = { tag = "0.1.4", git = "https://github.com/MyJetTools/rust-extensions.git" }

tokio = { version = "*", features = ["full"] }
Expand Down
13 changes: 9 additions & 4 deletions my-no-sql-tcp-shared/src/tcp_serializer.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use my_tcp_sockets::{
socket_reader::{ReadingTcpContractFail, SocketReader},
TcpSerializerMetadata, TcpSerializerMetadataFactory, TcpSocketSerializer, TcpWriteBuffer,
TcpSerializerFactory, TcpSerializerState, TcpSocketSerializer, TcpWriteBuffer,
};

use crate::MyNoSqlTcpContract;
Expand Down Expand Up @@ -38,7 +38,7 @@ impl TcpSocketSerializer<MyNoSqlTcpContract, ()> for MyNoSqlReaderTcpSerializer
}
}

impl TcpSerializerMetadata<MyNoSqlTcpContract> for () {
impl TcpSerializerState<MyNoSqlTcpContract> for () {
fn is_tcp_contract_related_to_metadata(&self, _: &MyNoSqlTcpContract) -> bool {
false
}
Expand All @@ -48,8 +48,13 @@ impl TcpSerializerMetadata<MyNoSqlTcpContract> for () {
pub struct MyNoSqlTcpSerializerFactory;

#[async_trait::async_trait]
impl TcpSerializerMetadataFactory<MyNoSqlTcpContract, ()> for MyNoSqlTcpSerializerFactory {
async fn create(&self) -> () {
impl TcpSerializerFactory<MyNoSqlTcpContract, MyNoSqlReaderTcpSerializer, ()>
for MyNoSqlTcpSerializerFactory
{
async fn create_serializer(&self) -> MyNoSqlReaderTcpSerializer {
MyNoSqlReaderTcpSerializer::new()
}
async fn create_serializer_state(&self) -> () {
()
}
}

0 comments on commit 8e015c8

Please sign in to comment.