From 9ed023808627aedb49aaa471fa5186dde9f63c17 Mon Sep 17 00:00:00 2001 From: Dipesh Dulal Date: Sat, 16 Jan 2021 12:04:16 +0545 Subject: [PATCH] doc: update output --- README.md | 18 +++++++++++------- main.go | 2 +- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f50c3cb..d7e66a0 100644 --- a/README.md +++ b/README.md @@ -21,12 +21,16 @@ scheduler.CheckEventsInInterval(ctx, time.Minute) **Output looks like;** ``` -2021/01/16 11:45:57 💾 Seeding database with table... -2021/01/16 11:45:57 🚀 Scheduling event SendEmail to run at 2021-01-16 11:46:57.177316418 +0545 +0545 m=+60.007979630 -2021/01/16 11:45:57 🚀 Scheduling event PayBills to run at 2021-01-16 11:50:57.180342726 +0545 +0545 m=+300.011005907 -2021/01/16 11:46:57 ⏰ Ticks Received... -2021/01/16 11:46:57 📨 Sending email with data: mail: nilkantha.dipesh@gmail.com -2021/01/16 11:47:57 ⏰ Ticks Received... -^C2021/01/16 11:48:00 +2021/01/16 11:58:49 💾 Seeding database with table... +2021/01/16 11:58:49 🚀 Scheduling event SendEmail to run at 2021-01-16 11:59:49.344904505 +0545 +0545 m=+60.004623549 +2021/01/16 11:58:49 🚀 Scheduling event PayBills to run at 2021-01-16 12:00:49.34773798 +0545 +0545 m=+120.007457039 +2021/01/16 11:59:49 ⏰ Ticks Received... +2021/01/16 11:59:49 📨 Sending email with data: mail: nilkantha.dipesh@gmail.com +2021/01/16 12:00:49 ⏰ Ticks Received... +2021/01/16 12:01:49 ⏰ Ticks Received... +2021/01/16 12:01:49 💲 Pay me a bill: paybills: $4,000 bill +2021/01/16 12:02:49 ⏰ Ticks Received... +2021/01/16 12:03:49 ⏰ Ticks Received... +^C2021/01/16 12:03:57 ❌ Interrupt received closing... ``` \ No newline at end of file diff --git a/main.go b/main.go index 56e067e..cee2957 100644 --- a/main.go +++ b/main.go @@ -35,7 +35,7 @@ func main() { scheduler.CheckEventsInInterval(ctx, time.Minute) scheduler.Schedule("SendEmail", "mail: nilkantha.dipesh@gmail.com", time.Now().Add(1*time.Minute)) - scheduler.Schedule("PayBills", "paybills: $4,000 bill", time.Now().Add(5*time.Minute)) + scheduler.Schedule("PayBills", "paybills: $4,000 bill", time.Now().Add(2*time.Minute)) go func() { for range interrupt {