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

Persistent store #17

Merged
merged 14 commits into from
May 4, 2019
Merged

Persistent store #17

merged 14 commits into from
May 4, 2019

Conversation

slai11
Copy link
Contributor

@slai11 slai11 commented Apr 12, 2019

Stores latest policy to postgres on each update and gets latest state on start-up

@slai11 slai11 marked this pull request as ready for review April 16, 2019 01:12
@slai11 slai11 requested a review from guangie88 April 16, 2019 01:12
app/store.go Outdated Show resolved Hide resolved
app/app.go Outdated Show resolved Hide resolved
}
if err != nil {
return err
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Was wondering whether this part can be made neater, with st.db.Ping() just appearing once instead of twice.

Seems unwieldy to do that though without all the functional programming tricks haha.

Copy link
Collaborator

@guangie88 guangie88 left a comment

Choose a reason for hiding this comment

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

LGTM

@slai11 slai11 merged commit b68f35e into master May 4, 2019
@slai11 slai11 deleted the persistent-store branch May 4, 2019 04:15
@slai11 slai11 mentioned this pull request May 4, 2019
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.

None yet

2 participants