From cd11106dd21bf83d137f06bec3ee7dbd18d12206 Mon Sep 17 00:00:00 2001 From: Pasha Date: Fri, 26 Jul 2024 08:17:02 +0300 Subject: [PATCH] [feat] Update --- Dockerfile | 4 ++-- src/table.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e9a6379..4bb617e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$BUILDPLATFORM rust:1.80 as builder +FROM --platform=$BUILDPLATFORM rust:1.79 as builder RUN apt-get update && apt-get install -y \ g++-x86-64-linux-gnu libc6-dev-amd64-cross \ g++-aarch64-linux-gnu libc6-dev-arm64-cross \ @@ -7,7 +7,7 @@ RUN apt-get update && apt-get install -y \ RUN rustup target add \ x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu armv7-unknown-linux-gnueabihf RUN rustup toolchain install \ - 1.80-x86_64-unknown-linux-gnu 1.80-aarch64-unknown-linux-gnu 1.80-armv7-unknown-linux-gnueabihf + 1.79-x86_64-unknown-linux-gnu 1.79-aarch64-unknown-linux-gnu 1.79-armv7-unknown-linux-gnueabihf RUN rustup component add rustfmt ENV CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-linux-gnu-gcc \ CC_x86_64_unknown_linux_gnu=x86_64-linux-gnu-gcc \ diff --git a/src/table.rs b/src/table.rs index 340359a..cd8b7da 100644 --- a/src/table.rs +++ b/src/table.rs @@ -94,7 +94,7 @@ impl Storage { #[derive(Clone)] pub struct Table { author_id: AuthorId, - iroh_doc: iroh::client::MemDoc, + iroh_doc: iroh::client::Doc, table_config: TableConfig, cancellation_token: CancellationToken, task_tracker: TaskTracker, @@ -107,7 +107,7 @@ impl Table { table_name: &str, author_id: AuthorId, node: Node, - iroh_doc: iroh::client::MemDoc, + iroh_doc: iroh::client::Doc, storage_config: Option, table_config: TableConfig, cancellation_token: CancellationToken, @@ -423,7 +423,7 @@ impl Table { } } - pub fn iroh_doc(&self) -> &iroh::client::MemDoc { + pub fn iroh_doc(&self) -> &iroh::client::Doc { &self.iroh_doc }