From d5d6ad406f47ae738a7f6b1699b3b6e7ef916bb9 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Thu, 17 Aug 2023 17:26:21 +0100 Subject: [bugfix] fix double firing bun.DB query hooks (#2124) * improve bun.DB wrapping readability + comments, fix double-firing query hooks * fix incorrect code comment placement * fix linter issues * Update internal/db/basic.go * do as the linter commmands ... --------- Signed-off-by: kim Co-authored-by: Daenney --- internal/db/basic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/db/basic.go') diff --git a/internal/db/basic.go b/internal/db/basic.go index f8c04c6b9..7cd690aef 100644 --- a/internal/db/basic.go +++ b/internal/db/basic.go @@ -33,9 +33,9 @@ type Basic interface { // For implementations that don't use tables, this can just return nil. DropTable(ctx context.Context, i interface{}) error - // Stop should stop and close the database connection cleanly, returning an error if this is not possible. + // Close should stop and close the database connection cleanly, returning an error if this is not possible. // If the database implementation doesn't need to be stopped, this can just return nil. - Stop(ctx context.Context) error + Close() error // IsHealthy should return nil if the database connection is healthy, or an error if not. IsHealthy(ctx context.Context) error -- cgit v1.2.3