From 6bd627b2eede271b89a45f3428fb53a9cf63223f Mon Sep 17 00:00:00 2001 From: Marco Ardizzone Date: Wed, 17 Sep 2025 11:53:38 +0200 Subject: [PATCH] Add missing Ping implementations --- backend/v3/storage/database/dialect/noop/client.go | 5 +++++ backend/v3/storage/database/dialect/noop/pool.go | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/backend/v3/storage/database/dialect/noop/client.go b/backend/v3/storage/database/dialect/noop/client.go index b870ee89e01..ee6e385d5a3 100644 --- a/backend/v3/storage/database/dialect/noop/client.go +++ b/backend/v3/storage/database/dialect/noop/client.go @@ -8,6 +8,11 @@ import ( type Client struct{} +// Ping implements database.Client. +func (n *Client) Ping(ctx context.Context) error { + return nil +} + // Begin implements [database.Client]. func (n *Client) Begin(ctx context.Context, opts *database.TransactionOptions) (database.Transaction, error) { return new(Transaction), nil diff --git a/backend/v3/storage/database/dialect/noop/pool.go b/backend/v3/storage/database/dialect/noop/pool.go index 05286cf6272..312f3b24849 100644 --- a/backend/v3/storage/database/dialect/noop/pool.go +++ b/backend/v3/storage/database/dialect/noop/pool.go @@ -8,6 +8,11 @@ import ( type Pool struct{} +// Ping implements database.Pool. +func (n *Pool) Ping(ctx context.Context) error { + return nil +} + // Acquire implements [database.Pool]. func (n *Pool) Acquire(ctx context.Context) (database.Client, error) { return new(Client), nil