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

Method TryAcquireLock

coderd/database/dbauthz/dbauthz.go:6489–6491  ·  view source on GitHub ↗
(ctx context.Context, id int64)

Source from the content-addressed store, hash-verified

6487}
6488
6489func (q *querier) TryAcquireLock(ctx context.Context, id int64) (bool, error) {
6490 return q.db.TryAcquireLock(ctx, id)
6491}
6492
6493func (q *querier) UnarchiveChatByID(ctx context.Context, id uuid.UUID) ([]database.Chat, error) {
6494 chat, err := q.db.GetChatByID(ctx, id)

Callers

nothing calls this directly

Calls 1

TryAcquireLockMethod · 0.65

Tested by

no test coverage detected