A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://gitlab.com/postgres-ai/joe/-/merge_requests/178.diff below:

diff --git a/pkg/bot/command/reset_session.go b/pkg/bot/command/reset_session.go index 43dec8a33370b2dbd33d1833ac9eae281ac15d30..af6058177cf59b2ec73d6d54c502783c98ef5396 100644 --- a/pkg/bot/command/reset_session.go +++ b/pkg/bot/command/reset_session.go @@ -50,6 +50,15 @@ func ResetSession(ctx context.Context, cmd *platform.Command, msg *models.Messag idleConnection.Release() } + cloneConn, err := session.Pool.Acquire(ctx) + if err != nil { + log.Err("failed to acquire database connection:", err) + } + + if cloneConn != nil { + session.CloneConnection = cloneConn.Conn() + } + fwData := &foreword.Content{ SessionID: clone.ID, Duration: time.Duration(clone.Metadata.MaxIdleMinutes) * time.Minute,

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4