File tree Expand file tree Collapse file tree 6 files changed +32
-5
lines changed Expand file tree Collapse file tree 6 files changed +32
-5
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " colink"
3- version = " 0.3.6 "
3+ version = " 0.3.7 "
44edition = " 2021"
55description = " CoLink Rust SDK"
66license = " MIT"
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ CoLink SDK helps both application and protocol developers access the functionali
99Add this to your Cargo.toml:
1010``` toml
1111[dependencies ]
12- colink = " 0.3.6 "
12+ colink = " 0.3.7 "
1313```
1414
1515## Getting Started
Original file line number Diff line number Diff 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 ?;
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ PACKAGE_NAME="colink-server-linux-x86_64.tar.gz"
66if [ " $( uname) " == " Darwin" ]; then
77 PACKAGE_NAME=" colink-server-macos-x86_64.tar.gz"
88fi
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
1010tar -xzf $PACKAGE_NAME
1111touch user_init_config.toml # create an empty user init config to prevent automatically starting protocols when importing users.
1212cd ..
You can’t perform that action at this time.
0 commit comments