Commit 291ca8e7 authored by refcell's avatar refcell

don't dial if we are missing rpc url

parent 4c8ed5ae
...@@ -173,6 +173,9 @@ func (s *Service) initGameLoader(cfg *config.Config) error { ...@@ -173,6 +173,9 @@ func (s *Service) initGameLoader(cfg *config.Config) error {
} }
func (s *Service) initRollupClient(ctx context.Context, cfg *config.Config) error { func (s *Service) initRollupClient(ctx context.Context, cfg *config.Config) error {
if cfg.RollupRpc == "" {
return nil
}
rollupClient, err := dial.DialRollupClientWithTimeout(ctx, dial.DefaultDialTimeout, s.logger, cfg.RollupRpc) rollupClient, err := dial.DialRollupClientWithTimeout(ctx, dial.DefaultDialTimeout, s.logger, cfg.RollupRpc)
if err != nil { if err != nil {
return err return err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment