fixed errors

gql_cataclysm
noah metz 2023-11-06 00:59:25 -07:00
parent 58675377fd
commit 6580725241
3 changed files with 2 additions and 3 deletions

@ -247,7 +247,7 @@ func (ext *LockableExt) HandleLockSignal(ctx *Context, node *Node, source NodeID
} }
lock_signal := NewLockSignal("lock") lock_signal := NewLockSignal("lock")
ext.WaitInfos[lock_signal.Id] = node.QueueTimeout(id, lock_signal, 100*time.Millisecond) ext.WaitInfos[lock_signal.Id] = node.QueueTimeout(id, lock_signal, 5000*time.Millisecond)
ext.Requirements[id] = Locking ext.Requirements[id] = Locking
messages = messages.Add(ctx, id, node, nil, lock_signal) messages = messages.Add(ctx, id, node, nil, lock_signal)

@ -87,7 +87,7 @@ func Test100Lock(t *testing.T) {
return l return l
} }
reqs := make([]NodeID, 100) reqs := make([]NodeID, 1000)
for i := range(reqs) { for i := range(reqs) {
new_lockable := NewLockable() new_lockable := NewLockable()
reqs[i] = new_lockable.ID reqs[i] = new_lockable.ID

@ -733,7 +733,6 @@ func WriteNodeChanges(ctx *Context, node *Node, changes Changes) error {
return err return err
} }
ext_serialized[ext_type] = serialized_ext ext_serialized[ext_type] = serialized_ext
ctx.Log.Logf("db", "extension 0x%x - %+v - %+v", ext_type, serialized_ext.TypeStack, serialized_ext.Data)
} }
} }