kraken
kraken copied to clipboard
Why not delete room or peer if they are useless
type pmap struct {
sync.RWMutex
id string
m map[string]*Peer
}
type rmap struct {
sync.RWMutex
m map[string]*pmap
}
I found the peer and room data in these 2 struct will never be deleted. I think this memory leak is a problem if the service running for a long time. What do you think?