Skip to content

Introduce Node.Environment and Node.Settings#88

Open
emichael wants to merge 1 commit intomasterfrom
improvement/node-environment
Open

Introduce Node.Environment and Node.Settings#88
emichael wants to merge 1 commit intomasterfrom
improvement/node-environment

Conversation

@emichael
Copy link
Copy Markdown
Owner

Review blocked on #86 being merged.

@emichael emichael self-assigned this Mar 22, 2026
Should have done this ages ago.
@emichael emichael force-pushed the improvement/node-environment branch from b693037 to 9603078 Compare March 23, 2026 00:40
@emichael emichael requested a review from wilcoxjay March 23, 2026 00:42
@emichael emichael marked this pull request as ready for review March 23, 2026 00:43
Copy link
Copy Markdown
Collaborator

@wilcoxjay wilcoxjay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

public void send(Message message, Address from, Address to) {
// Clone on message send
Message m = Cloning.clone(message);
network.send(new MessageEnvelope(from, to, message));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/message/m/? Otherwise m is not used.

}
},
true);
new Settings(true));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The true in new Settings(true) is hard to understand without context. (To be fair, the old code was just as bad.) Maybe a static factory method Settings.logExceptions() that returns a new Settings(true)?

thrownException = t;
},
false);
new Settings(false));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Settings.noLogExceptions()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants