mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-28 14:35:27 +08:00
Fix hardcode load config path
Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
parent
2863029665
commit
f319803eab
@ -1,9 +1,9 @@
|
||||
package conf
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"github.com/czs007/suvlim/storage/pkg/types"
|
||||
yaml "gopkg.in/yaml.v2"
|
||||
"io/ioutil"
|
||||
)
|
||||
|
||||
// yaml.MapSlice
|
||||
@ -60,7 +60,7 @@ func init() {
|
||||
|
||||
func load_config() {
|
||||
//var config ServerConfig
|
||||
filename := "github.com/czs007/suvlim/conf/config.yaml"
|
||||
filename := "conf/config.yaml"
|
||||
source, err := ioutil.ReadFile(filename)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
1
go.mod
1
go.mod
@ -41,7 +41,6 @@ require (
|
||||
golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f // indirect
|
||||
google.golang.org/grpc v1.31.0
|
||||
google.golang.org/grpc/examples v0.0.0-20200828165940-d8ef479ab79a // indirect
|
||||
google.golang.org/protobuf v1.25.0 // indirect
|
||||
gopkg.in/natefinch/lumberjack.v2 v2.0.0
|
||||
gopkg.in/yaml.v2 v2.3.0
|
||||
sigs.k8s.io/yaml v1.2.0 // indirect
|
||||
|
||||
@ -15,7 +15,7 @@ type minioDriver struct {
|
||||
|
||||
func NewMinioDriver(ctx context.Context) (*minioDriver, error) {
|
||||
// to-do read conf
|
||||
var endPoint = "192.168.2.28:9000"
|
||||
var endPoint = "localhost:9000"
|
||||
var accessKeyID = "testminio"
|
||||
var secretAccessKey = "testminio"
|
||||
var useSSL = false
|
||||
|
||||
@ -3,10 +3,10 @@ package main
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/czs007/suvlim/conf"
|
||||
"github.com/czs007/suvlim/storage/pkg"
|
||||
"github.com/czs007/suvlim/writer/message_client"
|
||||
"github.com/czs007/suvlim/writer/write_node"
|
||||
"github.com/czs007/suvlim/conf"
|
||||
"log"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user