mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 07:34:06 +08:00
@@ -10,7 +10,7 @@ func server(workChan <-chan *Work) {
|
||||
}
|
||||
|
||||
func safelyDo(work *Work) {
|
||||
defer func {
|
||||
defer func() {
|
||||
if err := recover(); err != nil {
|
||||
log.Printf("Work failed with %s in %v", err, work)
|
||||
}
|
||||
|
Reference in New Issue
Block a user