wip: update passing Queue to Commander
- Add minio to docker-compose
- Fix use of server.NewCommanderSingle
This commit is contained in:
committed by
=Michael Hohn
parent
7e0d6909da
commit
fc29fc5653
@@ -286,7 +286,7 @@ func (c *CommanderSingle) MirvaRequest(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
not_found_repos, analysisRepos := c.st.ServerStore.FindAvailableDBs(session_repositories)
|
||||
|
||||
c.queue.StartAnalyses(analysisRepos, session_id, session_language)
|
||||
c.st.Queue.StartAnalyses(analysisRepos, session_id, session_language)
|
||||
|
||||
si := SessionInfo{
|
||||
ID: session_id,
|
||||
|
||||
@@ -26,12 +26,10 @@ type SessionInfo struct {
|
||||
|
||||
type CommanderSingle struct {
|
||||
st *CommanderVisibles
|
||||
// TODO remove:
|
||||
queue queue.Queue
|
||||
}
|
||||
|
||||
func NewCommanderSingle(s *CommanderVisibles, q queue.Queue) *CommanderSingle {
|
||||
c := CommanderSingle{s, q}
|
||||
func NewCommanderSingle() *CommanderSingle {
|
||||
c := CommanderSingle{}
|
||||
return &c
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user