mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-11 00:40:00 +08:00
fix compiling error for goctl on windows
This commit is contained in:
@@ -4,8 +4,8 @@ package proc
|
|||||||
|
|
||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
|
// ShutdownConf is empty on windows.
|
||||||
type ShutdownConf {}
|
type ShutdownConf struct {}
|
||||||
|
|
||||||
// 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() {
|
||||||
@@ -25,6 +25,10 @@ func SetTimeToForceQuit(duration time.Duration) {
|
|||||||
func Setup() {
|
func Setup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Setup does nothing on windows.
|
||||||
|
func Setup() {
|
||||||
|
}
|
||||||
|
|
||||||
// Shutdown does nothing on windows.
|
// Shutdown does nothing on windows.
|
||||||
func Shutdown() {
|
func Shutdown() {
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user