Skip to content

Commit 9acfad1

Browse files
nand4011Momento GitHub Actions Bot
authored andcommitted
Update templated README.md file
1 parent 2e4a845 commit 9acfad1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ pub async fn main() -> Result<(), MomentoError> {
4949
let cache_client = CacheClient::builder()
5050
.default_ttl(Duration::from_secs(60))
5151
.configuration(Laptop::latest())
52-
.credential_provider(CredentialProvider::from_env_var(
53-
"MOMENTO_API_KEY".to_string(),
54-
)?)
52+
.credential_provider(CredentialProvider::from_default_env_var_v2()?)
5553
.build()?;
5654

5755
cache_client.create_cache(CACHE_NAME.to_string()).await?;

0 commit comments

Comments
 (0)