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

Method subscriptionGeneration

coderd/webpush/webpush.go:334–339  ·  view source on GitHub ↗
(userID uuid.UUID)

Source from the content-addressed store, hash-verified

332}
333
334func (n *Webpusher) subscriptionGeneration(userID uuid.UUID) uint64 {
335 n.cacheMu.RLock()
336 generation := n.subscriptionGenerations[userID]
337 n.cacheMu.RUnlock()
338 return generation
339}
340
341func (n *Webpusher) storeSubscriptions(userID uuid.UUID, generation uint64, subscriptions []database.WebpushSubscription) {
342 n.cacheMu.Lock()

Callers 1

subscriptionsForUserMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected