File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ The JWT token has a short life time and needs to be renewed periodically for lon
1717
1818There is a provided helper which will renew the token every ` 15 mins ` :
1919
20- ```
20+ ``` rs
2121let pubsub = match BaseClient :: create (config . google_application_credentials) {
2222 Err (e ) => panic! (" Failed to initialize pubsub: {}" , e ),
2323 Ok (p ) => p ,
@@ -32,7 +32,7 @@ tokio::run(lazy(move || {
3232
3333[ Envy] ( https://github.com/softprops/envy ) is an excellent way to load your config.
3434
35- ```
35+ ``` rs
3636#[derive(Deserialize )]
3737struct Config {
3838 pubsub_subscription : String ,
@@ -62,13 +62,13 @@ There are many available implementations to chose from, for example:
6262
6363[ env_logger] ( https://github.com/sebasmagri/env_logger/ ) is an excellent way to log in your executables.
6464
65- ```
65+ ``` toml
6666[dependencies ]
6767log = " 0.4"
6868env_logger = " 0.7"
6969```
7070
71- ```
71+ ``` rs
7272fn main () {
7373 env_logger :: init ();
7474
@@ -82,7 +82,7 @@ fn main() {
8282
8383### Connecting to existing subscription
8484
85- ```
85+ ``` rs
8686let sub = my_client . subscribe (" subscription-name" )
8787```
8888
You can’t perform that action at this time.
0 commit comments