Skip to content

Commit

Permalink
fix: remove cancel deferred in eventstore
Browse files Browse the repository at this point in the history
  • Loading branch information
opicaud committed Jan 4, 2024
1 parent 01113a6 commit 46672d2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions events/eventstore/grpc/inmemory/pkg/v2beta1/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func newInMemoryGrpcEventStore(address string, port int) *InMemoryGrpcEventStore
type InMemoryGrpcEventStore struct {
conn *grpc.ClientConn
client gen.EventStoreClient
cancel context.CancelFunc
address string
err error
port int
Expand All @@ -41,7 +40,6 @@ func (g *InMemoryGrpcEventStore) Connect() *InMemoryGrpcEventStore {
if g.err != nil {
log.Panic(g.err)
}

g.client = gen.NewEventStoreClient(g.conn)
g.healthIndicator = grpc_health_v1.NewHealthClient(g.conn)
return g
Expand All @@ -54,7 +52,6 @@ func (g *InMemoryGrpcEventStore) deferred() {
log.Panic(err)
}
}(g.conn)
defer g.cancel()
}

func (g *InMemoryGrpcEventStore) GetHealthClient(ctx context.Context) (context.Context, grpc_health_v1.HealthClient) {
Expand Down

0 comments on commit 46672d2

Please sign in to comment.