Skip to content

Commit

Permalink
fixed nil pointer issue with default chaoshubs (#4683)
Browse files Browse the repository at this point in the history
Signed-off-by: Saranya-jena <[email protected]>
  • Loading branch information
Saranya-jena authored Jun 1, 2024
1 parent f97e583 commit 5e74572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chaoscenter/graphql/server/pkg/chaoshub/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ func (c *chaosHubService) GetAllHubs(ctx context.Context) ([]*model.ChaosHub, er
func (c *chaosHubService) RecurringHubSync() {
for {
// Started Syncing of hubs
chaosHubs, _ := c.GetAllHubs(nil)
chaosHubs, _ := c.GetAllHubs(context.Background())

for _, chaosHub := range chaosHubs {
if !chaosHub.IsRemoved {
Expand Down

0 comments on commit 5e74572

Please sign in to comment.