()
| 780 | } |
| 781 | |
| 782 | func resetGlobals() { |
| 783 | globalMu.Lock() |
| 784 | globalCtx = context.Background() |
| 785 | globalLogger = slog.Default() |
| 786 | workers = nil |
| 787 | workersByName = nil |
| 788 | workersByPath = nil |
| 789 | watcherIsEnabled = false |
| 790 | maxIdleTime = defaultMaxIdleTime |
| 791 | maxRequestsPerThread = 0 |
| 792 | globalMu.Unlock() |
| 793 | } |
no outgoing calls