diff --git a/internal/actors/filesay/actor.go b/internal/actors/filesay/actor.go index 1b127e9..8188797 100644 --- a/internal/actors/filesay/actor.go +++ b/internal/actors/filesay/actor.go @@ -19,14 +19,10 @@ const ( httpTimeout = 5 * time.Second ) -var ( - formatMessage plugins.MsgFormatter - send plugins.SendMessageFunc -) +var formatMessage plugins.MsgFormatter func Register(args plugins.RegistrationArguments) error { formatMessage = args.FormatMessage - send = args.SendMessage args.RegisterActor(actorName, func() plugins.Actor { return &actor{} })