From 6c104d771e382f499025a35b10f39d997ce83b7d Mon Sep 17 00:00:00 2001 From: Gabriel Marin Date: Tue, 11 Mar 2025 07:24:54 +0200 Subject: Change 'interface{}' to 'any' (#4308) --- src/util/eventbox.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util') diff --git a/src/util/eventbox.go b/src/util/eventbox.go index b710cf1e..91b9274e 100644 --- a/src/util/eventbox.go +++ b/src/util/eventbox.go @@ -6,7 +6,7 @@ import "sync" type EventType int // Events is a type that associates EventType to any data -type Events map[EventType]interface{} +type Events map[EventType]any // EventBox is used for coordinating events type EventBox struct { @@ -36,7 +36,7 @@ func (b *EventBox) Wait(callback func(*Events)) { } // Set turns on the event type on the box -func (b *EventBox) Set(event EventType, value interface{}) { +func (b *EventBox) Set(event EventType, value any) { b.cond.L.Lock() b.events[event] = value if _, found := b.ignore[event]; !found { -- cgit v1.2.3