mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2024-11-24 08:52:25 +02:00
c3590b5c4c
On these platforms, the `done <- true` statement in during TearDown() was hanging, since the `watcher_unsupported.go` version was never draining the channel. Also took the opportunity to update the WatchForUpdates() signature to not return bool anymore.
13 lines
226 B
Go
13 lines
226 B
Go
// +build !go1.3 plan9 solaris
|
|
|
|
package main
|
|
|
|
import (
|
|
"log"
|
|
)
|
|
|
|
func WatchForUpdates(filename string, done <-chan bool, action func()) {
|
|
log.Printf("file watching not implemented on this platform")
|
|
go func() { <-done }()
|
|
}
|