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

Method getDeviceToDelete

clientapi/routing/register.go:193–198  ·  view source on GitHub ↗
(sessionID string)

Source from the content-addressed store, hash-verified

191}
192
193func (d *sessionsDict) getDeviceToDelete(sessionID string) (string, bool) {
194 d.RLock()
195 defer d.RUnlock()
196 deviceID, ok := d.deleteSessionToDeviceID[sessionID]
197 return deviceID, ok
198}
199
200var (
201 sessions = newSessionsDict()

Callers 2

DeleteDeviceByIdFunction · 0.80
TestSessionCleanUpFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestSessionCleanUpFunction · 0.64