Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Fixing cloning issue #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixing cloning issue #37

wants to merge 1 commit into from

Conversation

joshgarnett
Copy link
Collaborator

When cloning an event sourced message, the parent child relationships of the clone were broken.

When cloning an event sourced message, the parent child relationships of the clone were broken.
Copy link
Contributor

@wackoisgod wackoisgod left a comment

Choose a reason for hiding this comment

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

is there any overall perf implications of this change ?

printer->Print(vars,
"$name$_ = new EventMapField<$key_type_name$, $value_type_name$>($name$MapConverter, Context, $number$, true);\n");
}
else {
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we creating a dependencies now on the EventSource code even when the message is not sourced ?

@@ -538,15 +535,14 @@ public sealed partial class MessageB : zpr::EventRegistry<MessageB>, pb::IMessag
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MessageB() {
OnConstruction();
c_.SetContext(Context, 2);
c_ = new EventMapField<string, global::Com.Zynga.Runtime.Protobuf.File.MessageC>(cMapConverter, Context, 2, true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please fix the tabbing int he generator 👎

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants