mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-02 16:28:39 +08:00
fix compiling error for goctl on windows
This commit is contained in:
parent
cfe03ea9e1
commit
6a0c8047f4
@ -4,6 +4,9 @@ package proc
|
|||||||
|
|
||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
|
|
||||||
|
type ShutdownConf {}
|
||||||
|
|
||||||
// AddShutdownListener returns fn itself on windows, lets callers call fn on their own.
|
// AddShutdownListener returns fn itself on windows, lets callers call fn on their own.
|
||||||
func AddShutdownListener(fn func()) func() {
|
func AddShutdownListener(fn func()) func() {
|
||||||
return fn
|
return fn
|
||||||
@ -18,6 +21,10 @@ func AddWrapUpListener(fn func()) func() {
|
|||||||
func SetTimeToForceQuit(duration time.Duration) {
|
func SetTimeToForceQuit(duration time.Duration) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Setup does nothing on windows.
|
||||||
|
func Setup() {
|
||||||
|
}
|
||||||
|
|
||||||
// Shutdown does nothing on windows.
|
// Shutdown does nothing on windows.
|
||||||
func Shutdown() {
|
func Shutdown() {
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user