Skip to content

Commit

Permalink
Simplified stateless actors
Browse files Browse the repository at this point in the history
  • Loading branch information
ncthbrt committed May 10, 2018
1 parent c70de21 commit 02cf186
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/actor.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Actor {
this.path = parent.path.createChildPath(this.name);
this.system = system;
this.reference = new ActorReference(this.system.name, this.parent.reference, this.path, this.name);
this.log = this.system.createLogger(this.reference);
this.log = this.system.createLogger || this.system.createLogger(this.reference);
this.f = f;
this.state = undefined;
this.stopped = false;
Expand Down
1 change: 0 additions & 1 deletion lib/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class ActorSystem {
constructor (extensions) {
let [hd, ...tail] = extensions;
this.children = new Map();
this.createLogger = () => undefined;
this.name = (typeof (hd) === 'object' && hd.name) || generateSystemId();
this.path = ActorPath.root(this.name);
this.reference = new ActorSystemReference(this.name, this.path);
Expand Down

0 comments on commit 02cf186

Please sign in to comment.