Commit dc2d1a70 authored by Jia Sui's avatar Jia Sui
Browse files

Updated the main.go file


Add a timeout parameter in the ConfigCenterShim function.

Signed-off-by: Jia Sui's avatarJia Sui <jia.sui@advantech.com.cn>
Showing with 2 additions and 1 deletion
+2 -1
......@@ -4,6 +4,7 @@ package main
import (
"fmt"
"os"
"time"
"gitlab.wise-paas.com/jia.sui/shim"
)
......@@ -37,7 +38,7 @@ func main() {
shim.POSTGRES,
}
err := shim.ConfigCenterShim(host, depends, dbs)
err := shim.ConfigCenterShim(host, depends, dbs, time.Second*10)
if err != nil {
panic(err)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment