(ctx context.Context, pgTryAdvisoryXactLock int64)
| 4683 | } |
| 4684 | |
| 4685 | func (m queryMetricsStore) TryAcquireLock(ctx context.Context, pgTryAdvisoryXactLock int64) (bool, error) { |
| 4686 | start := time.Now() |
| 4687 | r0, r1 := m.s.TryAcquireLock(ctx, pgTryAdvisoryXactLock) |
| 4688 | m.queryLatencies.WithLabelValues("TryAcquireLock").Observe(time.Since(start).Seconds()) |
| 4689 | m.queryCounts.WithLabelValues(httpmw.ExtractHTTPRoute(ctx), httpmw.ExtractHTTPMethod(ctx), "TryAcquireLock").Inc() |
| 4690 | return r0, r1 |
| 4691 | } |
| 4692 | |
| 4693 | func (m queryMetricsStore) UnarchiveChatByID(ctx context.Context, id uuid.UUID) ([]database.Chat, error) { |
| 4694 | start := time.Now() |
nothing calls this directly
no test coverage detected