Skip to content

Commit 07d7db5

Browse files
authored
docs: fix non-compiling Rust external-transport example (#2142)
The Rust tab of "Connecting the SDK to the external server" constructed `Transport::External { host, port }` and omitted the variant's third field, so the example failed to compile: error[E0063]: missing field `connection_token` in initializer of `github_copilot_sdk::Transport` `connection_token` was added to the variant after the example was written. `None` is the value that matches this section: the server it tells you to start (`copilot --headless --port 4321`) has no token, and the other Rust example that constructs this variant, in docs/setup/multi-tenancy.md, already passes `None`. Co-authored-by: examon <examon@users.noreply.github.com>
1 parent b733d53 commit 07d7db5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

docs/getting-started.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2053,6 +2053,7 @@ let mut options = ClientOptions::default();
20532053
options.transport = Transport::External {
20542054
host: "localhost".to_string(),
20552055
port: 4321,
2056+
connection_token: None,
20562057
};
20572058
let client = Client::start(options).await?;
20582059

0 commit comments

Comments
 (0)