rm .DS_Store

This commit is contained in:
wxkj 2018-08-08 13:53:24 +08:00
parent 15e7a9b8a8
commit 1ac39cd2e0
4 changed files with 4 additions and 6 deletions

1
.gitignore vendored
View File

@ -13,3 +13,4 @@ gitpush.sh
pkg/
bin/
cbuild
*/.DS_Store

BIN
g/.DS_Store vendored

Binary file not shown.

BIN
g/database/.DS_Store vendored

Binary file not shown.

View File

@ -209,12 +209,9 @@ func getConfigNodeByPriority(cg ConfigGroup) *ConfigNode {
func newDb(masterNode *ConfigNode, slaveNode *ConfigNode, groupName string) (*Db, error) {
var link Link
switch masterNode.Type {
case "mysql":
link = linkMysql
case "pgsql":
link = linkPgsql
case "sqlite":
link = linkSqlite
case "mysql":link = linkMysql
case "pgsql":link = linkPgsql
case "sqlite":link = linkSqlite
default:
return nil, errors.New(fmt.Sprintf("unsupported db type '%s'", masterNode.Type))
}