kraken icon indicating copy to clipboard operation
kraken copied to clipboard

Why not delete room or peer if they are useless

Open maggch97 opened this issue 1 year ago • 4 comments

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?

maggch97 avatar Nov 25 '22 02:11 maggch97