Skip to content

Commit 634c6f8

Browse files
authored
Merge pull request #60 from CoLearn-Dev/pom-updates
POM: update proto
2 parents f55201e + 3927fbb commit 634c6f8

File tree

6 files changed

+32
-5
lines changed

6 files changed

+32
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "colink"
3-
version = "0.3.6"
3+
version = "0.3.7"
44
edition = "2021"
55
description = "CoLink Rust SDK"
66
license = "MIT"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CoLink SDK helps both application and protocol developers access the functionali
99
Add this to your Cargo.toml:
1010
```toml
1111
[dependencies]
12-
colink = "0.3.6"
12+
colink = "0.3.7"
1313
```
1414

1515
## Getting Started

proto

Submodule proto updated 1 file

src/application.rs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,29 @@ impl CoLink {
536536
protocol_name: &str,
537537
user_id: &str,
538538
upgrade: bool,
539+
) -> Result<String, Error> {
540+
self.start_protocol_operator_full_config(
541+
protocol_name,
542+
user_id,
543+
upgrade,
544+
Default::default(),
545+
Default::default(),
546+
Default::default(),
547+
Default::default(),
548+
)
549+
.await
550+
}
551+
552+
#[allow(clippy::too_many_arguments)]
553+
pub async fn start_protocol_operator_full_config(
554+
&self,
555+
protocol_name: &str,
556+
user_id: &str,
557+
upgrade: bool,
558+
source_type: StartProtocolOperatorSourceType,
559+
deploy_mode: &str,
560+
source: &str,
561+
vt_public_addr: &str,
539562
) -> Result<String, Error> {
540563
let mut client = self._grpc_connect(&self.core_addr).await?;
541564
let request = generate_request(
@@ -544,6 +567,10 @@ impl CoLink {
544567
protocol_name: protocol_name.to_string(),
545568
user_id: user_id.to_string(),
546569
upgrade,
570+
source_type: source_type as i32,
571+
deploy_mode: deploy_mode.to_string(),
572+
source: source.to_string(),
573+
vt_public_addr: vt_public_addr.to_string(),
547574
},
548575
);
549576
let response = client.start_protocol_operator(request).await?;

src/extensions/instant_server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl InstantServer {
6767
.arg("bash -c \"$(curl -fsSL https://raw.githubusercontent.com/CoLearn-Dev/colinkctl/main/install_colink.sh)\"")
6868
.env("COLINK_INSTALL_SERVER_ONLY", "true")
6969
.env("COLINK_INSTALL_SILENT", "true")
70-
.env("COLINK_SERVER_VERSION", "v0.3.4")
70+
.env("COLINK_SERVER_VERSION", "v0.3.5")
7171
.status()
7272
.unwrap();
7373
}

tests/download-server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PACKAGE_NAME="colink-server-linux-x86_64.tar.gz"
66
if [ "$(uname)" == "Darwin" ]; then
77
PACKAGE_NAME="colink-server-macos-x86_64.tar.gz"
88
fi
9-
wget https://github.com/CoLearn-Dev/colink-server-dev/releases/download/v0.3.4/$PACKAGE_NAME
9+
wget https://github.com/CoLearn-Dev/colink-server-dev/releases/download/v0.3.5/$PACKAGE_NAME
1010
tar -xzf $PACKAGE_NAME
1111
touch user_init_config.toml # create an empty user init config to prevent automatically starting protocols when importing users.
1212
cd ..

0 commit comments

Comments
 (0)