Yuri Astrakhan a824e8468c
Cleanup format arguments (#2650)
Inlined format args make code more readable, and code more compact.

I ran this clippy command to fix most cases, and then cleaned up a few trailing commas and uncaught edge cases.

```
cargo clippy --bins --examples  --benches --tests --lib --workspace --fix -- -A clippy::all -W clippy::uninlined_format_args
```
2023-07-31 13:27:04 -07:00
..
2023-07-31 13:27:04 -07:00
2023-07-03 14:37:37 -07:00
2020-03-31 00:35:07 +01:00

Postgres LISTEN/NOTIFY

Usage

Declare the database URL. This example does not include any reading or writing of data.

export DATABASE_URL="postgres://postgres@localhost/postgres"

Run.

cargo run

The example program should connect to the database, and create a LISTEN loop on a predefined set of channels. A NOTIFY task will be spawned which will connect to the same database and will emit notifications on a 5 second interval.