Skip to content

Commit

Permalink
Remove unintended SpiceDB connection test from constructor (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
wscalf authored Jun 27, 2024
1 parent d8e3b04 commit 06c8ae0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/data/spicedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@ func NewSpiceDbRepository(c *conf.Data, logger log.Logger) (*SpiceDbRepository,
return nil, nil, fmt.Errorf("error creating spicedb client: %w", err)
}

_, err = client.ReadSchema(context.TODO(), &v1.ReadSchemaRequest{})
if err != nil {
return nil, nil, fmt.Errorf("error testing connection to SpiceDB: %w", err)
}

cleanup := func() {
log.NewHelper(logger).Info("spicedb connection cleanup requested (nothing to clean up)")
}
Expand Down

0 comments on commit 06c8ae0

Please sign in to comment.