package protocol import ( "github.com/iotaledger/goshimmer/packages/node" "github.com/iotaledger/goshimmer/plugins/autopeering/instances/acceptedneighbors" "github.com/iotaledger/goshimmer/plugins/autopeering/instances/chosenneighbors" "github.com/iotaledger/goshimmer/plugins/autopeering/types/drop" ) func createIncomingDropProcessor(plugin *node.Plugin) func(drop *drop.Drop) { return func(drop *drop.Drop) { plugin.LogDebug("received drop message from " + drop.Issuer.String()) chosenneighbors.INSTANCE.Remove(drop.Issuer.Identity.StringIdentifier) acceptedneighbors.INSTANCE.Remove(drop.Issuer.Identity.StringIdentifier) } }