fix annotation for Initactor.Exec
This commit is contained in:
parent
007edf7830
commit
db41aed2b8
@ -94,7 +94,7 @@ func (ia InitActor) Exec(act *types.Actor, vmctx types.VMContext, p *ExecParams)
|
|||||||
"cannot launch actor instance that is not a builtin actor")
|
"cannot launch actor instance that is not a builtin actor")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure that singeltons can be only launched once.
|
// Ensure that singletons can be only launched once.
|
||||||
// TODO: do we want to enforce this? If so how should actors be marked as such?
|
// TODO: do we want to enforce this? If so how should actors be marked as such?
|
||||||
if IsSingletonActor(p.Code) {
|
if IsSingletonActor(p.Code) {
|
||||||
return nil, aerrors.New(1, "cannot launch another actor of this type")
|
return nil, aerrors.New(1, "cannot launch another actor of this type")
|
||||||
|
Loading…
Reference in New Issue
Block a user