diff options
| author | 2023-08-17 17:26:21 +0100 | |
|---|---|---|
| committer | 2023-08-17 17:26:21 +0100 | |
| commit | d5d6ad406f47ae738a7f6b1699b3b6e7ef916bb9 (patch) | |
| tree | 44df2eaf48eca66023023569d4ba8d901d800226 /internal/gotosocial | |
| parent | [chore]: Bump github.com/jackc/pgx/v5 from 5.4.2 to 5.4.3 (#2112) (diff) | |
| download | gotosocial-d5d6ad406f47ae738a7f6b1699b3b6e7ef916bb9.tar.xz | |
[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 <grufwub@gmail.com>
Co-authored-by: Daenney <daenney@users.noreply.github.com>
Diffstat (limited to 'internal/gotosocial')
| -rw-r--r-- | internal/gotosocial/gotosocial.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/gotosocial/gotosocial.go b/internal/gotosocial/gotosocial.go index 4c6846ff9..6a66602f0 100644 --- a/internal/gotosocial/gotosocial.go +++ b/internal/gotosocial/gotosocial.go @@ -72,6 +72,5 @@ func (gts *gotosocial) Stop(ctx context.Context) error { if err := gts.apiRouter.Stop(ctx); err != nil { return err } - - return gts.db.Stop(ctx) + return gts.db.Close() } |
