chore(rust): tidier libpk::main macro impl

This commit is contained in:
alyssa 2025-05-17 16:19:30 +00:00
parent 7737850afb
commit f9a6c2cefe
18 changed files with 90 additions and 64 deletions

View file

@ -11,8 +11,8 @@ use twilight_model::id::{
// create table messages_gdpr_jobs (mid bigint not null references messages(mid) on delete cascade, channel bigint not null);
libpk::main!("messages_gdpr_worker");
async fn real_main() -> anyhow::Result<()> {
#[libpk::main]
async fn main() -> anyhow::Result<()> {
let db = libpk::db::init_messages_db().await?;
let mut client_builder = twilight_http::Client::builder()