A fork of attic a self-hostable Nix Binary Cache server
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #134 from srhb/trim-token-file

trim token-file contents

authored by

Zhaofeng Li and committed by
GitHub
6603ee14 ec0469ca

+1
+1
client/src/config.rs
··· 81 81 match self { 82 82 ServerTokenConfig::Raw { token } => Ok(token.clone()), 83 83 ServerTokenConfig::File { token_file } => Ok(read_to_string(token_file) 84 + .map(|t| t.trim().to_string()) 84 85 .with_context(|| format!("Failed to read token from {token_file}"))?), 85 86 } 86 87 }