-
Notifications
You must be signed in to change notification settings - Fork 229
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
cli/daemon: database improvements #113
Conversation
All committers have signed the CLA. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! One minor nitpick but otherwise ready to ship.
cli/daemon/run.go
Outdated
@@ -236,38 +236,54 @@ func (s *Server) Test(req *daemonpb.TestRequest, stream daemonpb.Daemon_TestServ | |||
} | |||
s.cacheAppRoot(man.AppID, req.AppRoot) | |||
|
|||
setupCtx, setupCancel := context.WithTimeout(context.Background(), 30*time.Second) | |||
var usesSQLDB bool | |||
for _, svc := range parse.Meta.Svcs { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be replaced with usesSQLDB := requiresSQLDB(parse.Meta)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed it! Thanks. It's replaced now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Various improvements to database handling. Fixes encoredev#49, encoredev#98, encoredev#107
Various improvements to database handling. Fixes encoredev#49, encoredev#98, encoredev#107
Fixes #107 #98 #49