Set default timeout 30 seconds
This commit is contained in:
parent
9035160757
commit
5fe5aed0ab
|
@ -325,7 +325,7 @@ func (serve *Serve) Shutdown() {
|
|||
|
||||
// Регистрация функции в текущем инстансе
|
||||
func (serve *Serve) RegisterFunction(funcName string, f func(header *network.Header, paylod []byte) (result []byte, err error)) (err error) {
|
||||
return serve.RegisterFunctionWithTimeout(funcName, time.Second*10, f)
|
||||
return serve.RegisterFunctionWithTimeout(funcName, time.Second*30, f)
|
||||
}
|
||||
|
||||
// Регистрация функции с установленным таймаутом в текущем инстансе
|
||||
|
|
Loading…
Reference in New Issue
Block a user