fix(GODT-2800): Pending Subscriptions Cleanup

Ensure pending subscriptions are cleaned up with `Service.Close()` or
we can leak go routines.
This commit is contained in:
Leander Beernaert
2023-07-24 16:59:04 +02:00
parent 776976a8a2
commit bdbf1bdd76
2 changed files with 47 additions and 2 deletions

View File

@ -62,8 +62,8 @@ type VaultEventIDStore struct {
vault *vault.User
}
func NewVaultEventIDStore(vault *VaultEventIDStore) *VaultEventIDStore {
return &VaultEventIDStore{vault: vault.vault}
func NewVaultEventIDStore(vault *vault.User) *VaultEventIDStore {
return &VaultEventIDStore{vault: vault}
}
func (v VaultEventIDStore) Load(_ context.Context) (string, error) {