refactor: refactor stable diffusion service, add service pool support

This commit is contained in:
RockYang
2023-12-14 16:48:54 +08:00
parent 10ba1430f9
commit d2991e60b6
14 changed files with 266 additions and 253 deletions

View File

@@ -60,7 +60,7 @@ func (p *ServicePool) PushTask(task types.MjTask) {
p.taskQueue.RPush(task)
}
// HasAvailableService check if has available mj service in pool
// HasAvailableService check if it has available mj service in pool
func (p *ServicePool) HasAvailableService() bool {
return len(p.services) > 0
}