feat(locker): add check for nested calls
This commit is contained in:
@@ -106,7 +106,7 @@ func RegisterName(ctx context.Context, name string, e Event) error {
|
||||
|
||||
span.AddEvent("register: " + name)
|
||||
|
||||
if err := eventTypes.Modify(ctx, func(ctx context.Context, c *config) error {
|
||||
if err := eventTypes.Use(ctx, func(ctx context.Context, c *config) error {
|
||||
_, span := lg.Span(ctx)
|
||||
defer span.End()
|
||||
|
||||
@@ -124,7 +124,7 @@ func GetContainer(ctx context.Context, s string) Event {
|
||||
|
||||
var e Event
|
||||
|
||||
eventTypes.Modify(ctx, func(ctx context.Context, c *config) error {
|
||||
eventTypes.Use(ctx, func(ctx context.Context, c *config) error {
|
||||
_, span := lg.Span(ctx)
|
||||
defer span.End()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user