Removed log statement, and moved initial node write to after parsing of creation signal

gql_cataclysm
noah metz 2023-10-08 02:35:11 -06:00
parent 56f3cce415
commit 34162023cb
2 changed files with 5 additions and 3 deletions

@ -148,7 +148,6 @@ func (ext *LockableExt) HandleSuccessSignal(ctx *Context, node *Node, source Nod
}
info, found := ext.Requirements[source]
ctx.Log.Logf("lockable", "State: %+v", ext.State)
if found == false {
ctx.Log.Logf("lockable", "Got success from non-requirement %s", source)
} else if info.MsgID != signal.ReqID {

@ -659,12 +659,15 @@ func NewNode(ctx *Context, key ed25519.PrivateKey, node_type NodeType, buffer_si
}
ctx.AddNode(id, node)
err = WriteNode(ctx, node)
err = node.Process(ctx, ZeroID, NewCreateSignal())
if err != nil {
return nil, err
}
node.Process(ctx, ZeroID, NewCreateSignal())
err = WriteNode(ctx, node)
if err != nil {
return nil, err
}
go runNode(ctx, node)