Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cluster fixes #155

Closed
wants to merge 6 commits into from
Closed

Cluster fixes #155

wants to merge 6 commits into from

Conversation

zmrocze
Copy link
Contributor

@zmrocze zmrocze commented Nov 27, 2022

Analog of #154 targeting master.

Waiting for cluster funds is already present at master (in different form) so that wasn't changed.

@zmrocze zmrocze mentioned this pull request Nov 27, 2022
let tracer' = trMessageText trCluster
waitForRelayNode tracer' rn
maybePort <- handleChainIndexLaunch (chainIndexMode conf) rn dir
let cEnv =
mChainStarted <- handleChainIndexLaunch (chainIndexMode conf) rn dir
Copy link
Collaborator

@mikekeke mikekeke Nov 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An IMHO, but this stuff starting to get a bit involved. I think because of the way handleChainIndexLaunch is done.

Maybe do something like

getChIndexPort :: ChainIndexMode -> Maybe ChainIndexPort

and then clearly branch on it like

mPort = getChIndexPort (chainIndexMode conf)
case mPort of
  Just port -> bracket (startIndex port rn dir) stopIndex (<make cEnv and run setup and actions>)
  -- or
  -- Just port -> withChainIndex port rn dir (<make cEnv and run setup and actions>)
  Nothing ->  (<make cEnv and run setup and actions>)

or something like that, and trash handleChainIndexLaunch

@zmrocze
Copy link
Contributor Author

zmrocze commented Dec 12, 2023

@euonymos As the pr says - this is already merged into master in #154.
Should have delete it long time ago..

@zmrocze zmrocze closed this Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chain-index continues to run after stopCluster.
2 participants