MCPcopy Create free account
hub / github.com/daodst/chat / addDeviceToDelete

Method addDeviceToDelete

clientapi/routing/register.go:173–178  ·  view source on GitHub ↗
(sessionID, deviceID string)

Source from the content-addressed store, hash-verified

171}
172
173func (d *sessionsDict) addDeviceToDelete(sessionID, deviceID string) {
174 d.startTimer(defaultTimeOut, sessionID)
175 d.Lock()
176 defer d.Unlock()
177 d.deleteSessionToDeviceID[sessionID] = deviceID
178}
179
180func (d *sessionsDict) addCompletedRegistration(sessionID string, response registerResponse) {
181 d.Lock()

Callers 2

DeleteDeviceByIdFunction · 0.80
TestSessionCleanUpFunction · 0.80

Calls 3

startTimerMethod · 0.95
LockMethod · 0.80
UnlockMethod · 0.80

Tested by 1

TestSessionCleanUpFunction · 0.64