From d1980f96745856299a784c5f43aa2ee5fd9fe8b5 Mon Sep 17 00:00:00 2001
From: 554325746@qq.com <554325746@qq.com>
Date: 星期四, 22 八月 2019 14:33:36 +0800
Subject: [PATCH] bug fix
---
nngopt.go | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/nngopt.go b/nngopt.go
index 0ffb761..bd7aa65 100644
--- a/nngopt.go
+++ b/nngopt.go
@@ -10,10 +10,14 @@
var (
maxRecvSize = 33 * 1024 * 1024
surveyorTime = 0
+ timeout = time.Duration(25)
)
+func setTimeOut(tm int) {
+ timeout = time.Duration(tm)
+}
+
func optDefault() map[string]interface{} {
- timeout := time.Duration(25)
options := make(map[string]interface{})
--
Gitblit v1.8.0