Compare commits

...

2 Commits

Author SHA1 Message Date
王性驊 c03b65c693 feat: update InitAutoId to InitAutoID 2024-12-27 11:44:04 +08:00
王性驊 7952af6782 feat: fix doc-db-port 2024-12-26 23:40:53 +08:00
3 changed files with 2 additions and 3 deletions

View File

@ -7,7 +7,6 @@ type Conf struct {
User string User string
Password string Password string
Host string Host string
Port string
Database string Database string
ReplicaName string ReplicaName string
MaxStaleness time.Duration MaxStaleness time.Duration

View File

@ -34,7 +34,7 @@ func NewDocumentDB(config *Conf, collection string, opts ...mon.Option) (Documen
connectionStringTemplate, connectionStringTemplate,
config.Schema, config.Schema,
authenticationURI, authenticationURI,
fmt.Sprintf("%s:%s", config.Host, config.Port), config.Host,
) )
connectUri, _ := url.Parse(connectionURI) connectUri, _ := url.Parse(connectionURI)

View File

@ -2,7 +2,7 @@ package invited_code
const ( const (
DefaultCodeLen = 8 DefaultCodeLen = 8
InitAutoId = 10000000 InitAutoID = 10000000
) )
var ConvertTable = []string{ var ConvertTable = []string{