Skip to content

Commit

Permalink
fix connection leaking
Browse files Browse the repository at this point in the history
Fixes #1995
  • Loading branch information
muhamadazmy committed Jul 10, 2023
1 parent aa430b2 commit 79e8386
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/registrar/registrar.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ func (r *Registrar) reActivate(ctx context.Context, cl zbus.Client, env environm
return err
}

defer sub.Close()

sk := ed25519.PrivateKey(stubs.NewIdentityManagerStub(cl).PrivateKey(ctx))
id, err := substrate.NewIdentityFromEd25519Key(sk)
if err != nil {
Expand Down

0 comments on commit 79e8386

Please sign in to comment.