wip: update passing Queue to Commander

- Add minio to docker-compose
     - Fix use of server.NewCommanderSingle
This commit is contained in:
Michael Hohn
2024-06-11 13:19:05 -07:00
committed by =Michael Hohn
parent 7e0d6909da
commit fc29fc5653
5 changed files with 30 additions and 17 deletions

View File

@@ -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,

View File

@@ -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
}