MCPcopy Index your code
hub / github.com/coder/coder / DeleteOldChatFiles

Method DeleteOldChatFiles

coderd/database/dbmetrics/querymetrics.go:693–699  ·  view source on GitHub ↗
(ctx context.Context, arg database.DeleteOldChatFilesParams)

Source from the content-addressed store, hash-verified

691}
692
693func (m queryMetricsStore) DeleteOldChatFiles(ctx context.Context, arg database.DeleteOldChatFilesParams) (int64, error) {
694 start := time.Now()
695 r0, r1 := m.s.DeleteOldChatFiles(ctx, arg)
696 m.queryLatencies.WithLabelValues("DeleteOldChatFiles").Observe(time.Since(start).Seconds())
697 m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "DeleteOldChatFiles").Inc()
698 return r0, r1
699}
700
701func (m queryMetricsStore) DeleteOldChats(ctx context.Context, arg database.DeleteOldChatsParams) (int64, error) {
702 start := time.Now()

Callers

nothing calls this directly

Calls 4

ExtractHTTPRouteFunction · 0.92
ExtractHTTPMethodFunction · 0.92
WithLabelValuesMethod · 0.80
DeleteOldChatFilesMethod · 0.65

Tested by

no test coverage detected