Skip to content

Commit

Permalink
Update actor.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jancajthaml authored May 12, 2019
1 parent e0387e3 commit a4ded92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ func NewEnvelope(name string, state interface{}) *Envelope {
}

// Tell queues message to actor
func (ref *Envelope) Tell(data interface{}, reciever Coordinates, sender Coordinates) (err error) {
func (ref *Envelope) Tell(data interface{}, receiver Coordinates, sender Coordinates) (err error) {
if ref == nil {
err = fmt.Errorf("actor reference %v not found", ref)
return
}
ref.Backlog <- Context{
Data: data,
Self: ref,
Reciever: reciever,
Receiver: receiver,
Sender: sender,
}
return
Expand Down

0 comments on commit a4ded92

Please sign in to comment.