refactor: refactor stable diffusion service, add service pool support

This commit is contained in:
RockYang
2023-12-14 16:48:54 +08:00
parent 4a56621ec3
commit 8f057ca9d1
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
}