Add condition to check the peer of event is in swarm of not
Add comment