aboutsummaryrefslogtreecommitdiffstats
path: root/worker/imap/observer.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker/imap/observer.go')
-rw-r--r--worker/imap/observer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/worker/imap/observer.go b/worker/imap/observer.go
index 1c481bed..7367ff58 100644
--- a/worker/imap/observer.go
+++ b/worker/imap/observer.go
@@ -18,14 +18,14 @@ type observer struct {
sync.Mutex
config imapConfig
client *imapClient
- worker *types.Worker
+ worker types.WorkerInteractor
done chan struct{}
autoReconnect bool
retries int
running bool
}
-func newObserver(cfg imapConfig, w *types.Worker) *observer {
+func newObserver(cfg imapConfig, w types.WorkerInteractor) *observer {
return &observer{config: cfg, worker: w, done: make(chan struct{})}
}