File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
exchanger :
2
- url : " etcd://user:password @localhost:2379"
2
+ url : " etcd://root:root @localhost:2379"
3
3
storage :
4
4
url : " mysql://user:password@localhost:3306"
5
5
database : envcd
6
6
server :
7
7
read-timeout : 60
8
8
write-timeout : 60
9
- port : 8080
9
+ port : 8000
10
10
run-mode : debug
Original file line number Diff line number Diff line change @@ -64,6 +64,6 @@ func (exchange *Exchange) Remove(key interface{}) error {
64
64
}
65
65
66
66
func isNil (exchanger Exchanger ) bool {
67
- v , _ := exchanger .(* Exchange )
67
+ v , _ := exchanger .(* etcd. Etcd )
68
68
return v == nil
69
69
}
Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ func (openapi *Openapi) initServer(serverSetting *config.Server) {
58
58
server := & http.Server {
59
59
Addr : fmt .Sprintf (":%d" , serverSetting .Port ),
60
60
Handler : openapi .buildRouter (),
61
- ReadTimeout : time .Duration (serverSetting .ReadTimeout ),
62
- WriteTimeout : time .Duration (serverSetting .WriteTimeout ),
61
+ ReadTimeout : time .Duration (serverSetting .ReadTimeout ) * time . Millisecond ,
62
+ WriteTimeout : time .Duration (serverSetting .WriteTimeout ) * time . Millisecond ,
63
63
MaxHeaderBytes : 1 << 20 ,
64
64
}
65
65
You can’t perform that action at this time.
0 commit comments