Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable syntax highlighting in README.md #23

Merged
merged 1 commit into from
Jan 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The JWT token has a short life time and needs to be renewed periodically for lon

There is a provided helper which will renew the token every `15 mins`:

```
```rs
let pubsub = match BaseClient::create(config.google_application_credentials) {
Err(e) => panic!("Failed to initialize pubsub: {}", e),
Ok(p) => p,
Expand All @@ -32,7 +32,7 @@ tokio::run(lazy(move || {

[Envy](https://github.com/softprops/envy) is an excellent way to load your config.

```
```rs
#[derive(Deserialize)]
struct Config {
pubsub_subscription: String,
Expand Down Expand Up @@ -62,13 +62,13 @@ There are many available implementations to chose from, for example:

[env_logger](https://github.com/sebasmagri/env_logger/) is an excellent way to log in your executables.

```
```toml
[dependencies]
log = "0.4"
env_logger = "0.7"
```

```
```rs
fn main() {
env_logger::init();

Expand All @@ -82,7 +82,7 @@ fn main() {

### Connecting to existing subscription

```
```rs
let sub = my_client.subscribe("subscription-name")
```

Expand Down