Skip to content

Commit

Permalink
fix(SPV-1494): panic on start up
Browse files Browse the repository at this point in the history
  • Loading branch information
dorzepowski committed Feb 4, 2025
1 parent 88abb36 commit 8d002c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions engine/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,6 @@ func NewClient(ctx context.Context, opts ...ClientOps) (ClientInterface, error)
return nil, err
}

if err = client.loadTransactionOutlinesService(); err != nil {
return nil, err
}

// Load the Notification client (if client does not exist)
if err = client.loadNotificationClient(ctx); err != nil {
return nil, err
Expand Down Expand Up @@ -199,6 +195,10 @@ func NewClient(ctx context.Context, opts ...ClientOps) (ClientInterface, error)
}
}

if err = client.loadTransactionOutlinesService(); err != nil {
return nil, err
}

// Return the client
return client, nil
}
Expand Down

0 comments on commit 8d002c0

Please sign in to comment.