Skip to content

Commit

Permalink
Merge pull request #60 from CoLearn-Dev/pom-updates
Browse files Browse the repository at this point in the history
POM: update proto
  • Loading branch information
stneng authored Apr 12, 2023
2 parents f55201e + 3927fbb commit 634c6f8
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "colink"
version = "0.3.6"
version = "0.3.7"
edition = "2021"
description = "CoLink Rust SDK"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CoLink SDK helps both application and protocol developers access the functionali
Add this to your Cargo.toml:
```toml
[dependencies]
colink = "0.3.6"
colink = "0.3.7"
```

## Getting Started
Expand Down
2 changes: 1 addition & 1 deletion proto
Submodule proto updated 1 files
+11 −0 colink.proto
27 changes: 27 additions & 0 deletions src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,29 @@ impl CoLink {
protocol_name: &str,
user_id: &str,
upgrade: bool,
) -> Result<String, Error> {
self.start_protocol_operator_full_config(
protocol_name,
user_id,
upgrade,
Default::default(),
Default::default(),
Default::default(),
Default::default(),
)
.await
}

#[allow(clippy::too_many_arguments)]
pub async fn start_protocol_operator_full_config(
&self,
protocol_name: &str,
user_id: &str,
upgrade: bool,
source_type: StartProtocolOperatorSourceType,
deploy_mode: &str,
source: &str,
vt_public_addr: &str,
) -> Result<String, Error> {
let mut client = self._grpc_connect(&self.core_addr).await?;
let request = generate_request(
Expand All @@ -544,6 +567,10 @@ impl CoLink {
protocol_name: protocol_name.to_string(),
user_id: user_id.to_string(),
upgrade,
source_type: source_type as i32,
deploy_mode: deploy_mode.to_string(),
source: source.to_string(),
vt_public_addr: vt_public_addr.to_string(),
},
);
let response = client.start_protocol_operator(request).await?;
Expand Down
2 changes: 1 addition & 1 deletion src/extensions/instant_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl InstantServer {
.arg("bash -c \"$(curl -fsSL https://raw.githubusercontent.com/CoLearn-Dev/colinkctl/main/install_colink.sh)\"")
.env("COLINK_INSTALL_SERVER_ONLY", "true")
.env("COLINK_INSTALL_SILENT", "true")
.env("COLINK_SERVER_VERSION", "v0.3.4")
.env("COLINK_SERVER_VERSION", "v0.3.5")
.status()
.unwrap();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/download-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PACKAGE_NAME="colink-server-linux-x86_64.tar.gz"
if [ "$(uname)" == "Darwin" ]; then
PACKAGE_NAME="colink-server-macos-x86_64.tar.gz"
fi
wget https://github.com/CoLearn-Dev/colink-server-dev/releases/download/v0.3.4/$PACKAGE_NAME
wget https://github.com/CoLearn-Dev/colink-server-dev/releases/download/v0.3.5/$PACKAGE_NAME
tar -xzf $PACKAGE_NAME
touch user_init_config.toml # create an empty user init config to prevent automatically starting protocols when importing users.
cd ..

0 comments on commit 634c6f8

Please sign in to comment.