mirror of
https://github.com/ManyakRus/starter.git
synced 2025-11-23 22:45:11 +02:00
сделал folders.go
This commit is contained in:
@@ -248,13 +248,10 @@ func ForwardMessage(msg *imap.Message, email_send_to string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// WaitStop - ожидает отмену глобального контекста или сигнала завершения приложения
|
||||
// WaitStop - ожидает отмену глобального контекста
|
||||
func WaitStop() {
|
||||
|
||||
select {
|
||||
//case <-stopapp.SignalInterrupt:
|
||||
// log.Warn("Interrupt clean shutdown.")
|
||||
// contextmain.CancelContext()
|
||||
case <-contextmain.GetContext().Done():
|
||||
log.Warn("Context app is canceled.")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user