diff --git a/neo3fura_http/biz/api/src.GetSourceCodeByContractHash.go b/neo3fura_http/biz/api/src.GetSourceCodeByContractHash.go index 39b8422..3eda7cc 100644 --- a/neo3fura_http/biz/api/src.GetSourceCodeByContractHash.go +++ b/neo3fura_http/biz/api/src.GetSourceCodeByContractHash.go @@ -3,8 +3,10 @@ package api import ( "context" "encoding/json" + "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mongo/options" + "neo3fura_http/lib/cli" log2 "neo3fura_http/lib/log" "neo3fura_http/lib/type/h160" @@ -30,7 +32,7 @@ func (me *T) GetSourceCodeByContractHash(args struct { if args.Limit <= 0 { args.Limit = 20 } - clientOptions := options.Client().ApplyURI("mongodb://Mindy:QMRhLk9m8rqXWC3X9pMJ@10.0.7.38:27018/ContractSource") + clientOptions := options.Client().ApplyURI("mongodb://Mindy:QMRhLk9m8rqXWC3X9pMJ@10.128.0.30:27018/ContractSource") dbOnline := "ContractSource" clientOptions.SetMaxPoolSize(50) co, err := mongo.Connect(context.TODO(), clientOptions) diff --git a/neo3fura_http/biz/api/src.GetVerifiedContractByContractHash.go b/neo3fura_http/biz/api/src.GetVerifiedContractByContractHash.go index c23b8f0..c4978fc 100644 --- a/neo3fura_http/biz/api/src.GetVerifiedContractByContractHash.go +++ b/neo3fura_http/biz/api/src.GetVerifiedContractByContractHash.go @@ -3,8 +3,10 @@ package api import ( "context" "encoding/json" + "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mongo/options" + "neo3fura_http/lib/cli" log2 "neo3fura_http/lib/log" "neo3fura_http/lib/type/h160" @@ -26,7 +28,7 @@ func (me *T) GetVerifiedContractByContractHash(args struct { return stderr.ErrInvalidArgs } - clientOptions := options.Client().ApplyURI("mongodb://Mindy:QMRhLk9m8rqXWC3X9pMJ@10.0.7.38:27018/ContractSource") + clientOptions := options.Client().ApplyURI("mongodb://Mindy:QMRhLk9m8rqXWC3X9pMJ@10.128.0.30:27018/ContractSource") dbOnline := "ContractSource" clientOptions.SetMaxPoolSize(50) co, err := mongo.Connect(context.TODO(), clientOptions) diff --git a/neo3fura_http/biz/api/src.GetVerifiedContracts.go b/neo3fura_http/biz/api/src.GetVerifiedContracts.go index 22fa80a..5e55f08 100644 --- a/neo3fura_http/biz/api/src.GetVerifiedContracts.go +++ b/neo3fura_http/biz/api/src.GetVerifiedContracts.go @@ -3,11 +3,13 @@ package api import ( "context" "encoding/json" + "os" + "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mongo/options" + "neo3fura_http/lib/cli" log2 "neo3fura_http/lib/log" - "os" "go.mongodb.org/mongo-driver/bson" ) @@ -18,7 +20,7 @@ func (me *T) GetVerifiedContracts(args struct { Skip int64 }, ret *json.RawMessage) error { - clientOptions := options.Client().ApplyURI("mongodb://Mindy:QMRhLk9m8rqXWC3X9pMJ@10.0.7.38:27018/ContractSource") + clientOptions := options.Client().ApplyURI("mongodb://Mindy:QMRhLk9m8rqXWC3X9pMJ@10.128.0.30:27018/ContractSource") dbOnline := "ContractSource" clientOptions.SetMaxPoolSize(50) co, err := mongo.Connect(context.TODO(), clientOptions)