From 1e28905c8d8dd13b7e9e0fc5797b3f8ae82859d2 Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Sat, 7 Aug 2021 11:46:58 -0400 Subject: [PATCH] Add clarification on hack --- storage/store/sqlite/sqlite.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/storage/store/sqlite/sqlite.go b/storage/store/sqlite/sqlite.go index 68b645ed..a93302de 100644 --- a/storage/store/sqlite/sqlite.go +++ b/storage/store/sqlite/sqlite.go @@ -19,6 +19,9 @@ import ( ////////////////////////////////////////////////////////////////////////////////////////////////// const ( + // arraySeparator is the separator used to separate multiple strings in a single column. + // It's a dirty hack, but it's only used for persisting errors, and since this data will likely only ever be used + // for aesthetic purposes, I deemed it wasn't worth the performance impact of yet another one-to-many table. arraySeparator = "|~|" uptimeCleanUpThreshold = 10 * 24 * time.Hour // Maximum uptime age before triggering a clean up