mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-14 18:18:14 +02:00
changed store.Store to accept generic key type
This commit is contained in:
1 parent
e18116d859
commit
39df26ee21
12 files changed
+57
-54
No files matched your search
@@ -9,13 +9,13 @@ import (
|
||||
|
||||
// Broker defines a struct for managing subscriptions clients.
|
||||
type Broker struct {
|
||||
store *store.Store[Client]
|
||||
store *store.Store[string, Client]
|
||||
}
|
||||
|
||||
// NewBroker initializes and returns a new Broker instance.
|
||||
func NewBroker() *Broker {
|
||||
return &Broker{
|
||||
store: store.New[Client](nil),
|
||||
store: store.New[string, Client](nil),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user