diff --git a/cmd/server/main.go b/cmd/server/main.go index 67c4eaece..648745434 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -5,6 +5,7 @@ import ( "flag" "fmt" "runtime" + "time" goGrpc "google.golang.org/grpc" "google.golang.org/grpc/credentials/insecure" @@ -85,6 +86,7 @@ func runIndexer(ctx context.Context, store *storage.Store, logger zerolog.Logger reconnect := func(height uint64) { logger.Warn().Msgf("Reconnecting at block height: %d", height) + time.Sleep(10 * time.Second) var err error flowClient, err := grpc.NewBaseClient(