Improve named actor interface
This commit is contained in:
parent
7d0620fe3e
commit
f4904884ad
2
actor.go
2
actor.go
@ -30,7 +30,7 @@ type Actor interface {
|
||||
}
|
||||
|
||||
// Named is any object with a name.
|
||||
type Named() string {
|
||||
type Named interface {
|
||||
// Name returns the name. This doesn't need to be the same as Type. It
|
||||
// must return the same string every time. It is used to differentiate
|
||||
// actors of the same type in logs.
|
||||
|
Loading…
Reference in New Issue
Block a user