Skip to content

refactor main to use defer#57

Open
endorama wants to merge 4 commits intomainfrom
refactor-main
Open

refactor main to use defer#57
endorama wants to merge 4 commits intomainfrom
refactor-main

Conversation

@endorama
Copy link
Owner

#56 introduced a deferred DB close in main, but that would never work due to the use of os.Exit extensively.

To avoid issues and properly close the db, move the main logic in a separate function and refactor error handling to return formatted and wrapped errors.

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.

1 participant