Skip to content

Commit

Permalink
Merge pull request #218 from xrelkd/feat/metrics
Browse files Browse the repository at this point in the history
Support gRPC authentication mechanisms
  • Loading branch information
xrelkd authored Dec 18, 2023
2 parents 0412501 + 9e60199 commit 7ce5b09
Show file tree
Hide file tree
Showing 30 changed files with 913 additions and 117 deletions.
216 changes: 216 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ members = [
"crates/clipboard",
"crates/dbus-variant",
"crates/external-editor",
"crates/metrics",
"crates/proto",
"crates/server",
]
Expand Down
5 changes: 4 additions & 1 deletion clipcat-menu/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ impl Cli {
let finder =
build_finder(finder, rofi_config, dmenu_config, custom_finder_config, &mut config);
let fut = async move {
let client = Client::new(config.server_endpoint).await?;
let client = {
let access_token = config.access_token();
Client::new(config.server_endpoint, access_token).await?
};
let clips = client.list(PREVIEW_LENGTH).await?;

match commands {
Expand Down
Loading

0 comments on commit 7ce5b09

Please sign in to comment.