Skip to content

Commit

Permalink
Fix lint error and remove proxy config
Browse files Browse the repository at this point in the history
  • Loading branch information
sejongk committed Sep 29, 2023
1 parent d6ee5b9 commit bb175e1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build/docker/sharding/dev/scripts/init-mongos1.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ sh.shardCollection("yorkie-meta.clients", { project_id: "hashed" })
sh.shardCollection("yorkie-meta.documents", { project_id: "hashed" })
sh.shardCollection("yorkie-meta.changes", { doc_id: "hashed", server_seq: 1 })
sh.shardCollection("yorkie-meta.snapshots", { doc_id: "hashed" })
sh.shardCollection("yorkie-meta.syncedseqs", { doc_id: "hashed" })
sh.shardCollection("yorkie-meta.syncedseqs", { doc_id: "hashed" })
5 changes: 0 additions & 5 deletions build/docker/sharding/prod/scripts/init-mongos1.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,3 @@ sh.shardCollection("yorkie-meta.documents", { project_id: "hashed" })
sh.shardCollection("yorkie-meta.changes", { doc_id: "hashed", server_seq: 1 })
sh.shardCollection("yorkie-meta.snapshots", { doc_id: "hashed" })
sh.shardCollection("yorkie-meta.syncedseqs", { doc_id: "hashed" })
// proxy collections
sh.shardCollection("yorkie-meta.project_ids", { project_id: "hashed" })
sh.shardCollection("yorkie-meta.project_names", { owner: "hashed" })
sh.shardCollection("yorkie-meta.project_public_keys", { public_key: "hashed" })
sh.shardCollection("yorkie-meta.project_secret_keys", { secret_key: "hashed" })
3 changes: 1 addition & 2 deletions server/backend/database/mongo/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,8 @@ func (c *Client) UpdateProjectInfo(
if err = result.Decode(&info); err != mongo.ErrNoDocuments {
if err == nil {
return nil, database.ErrProjectNameAlreadyExists
} else {
return nil, fmt.Errorf("decode project info: %w", err)
}
return nil, fmt.Errorf("decode project info: %w", err)
}
}

Expand Down

0 comments on commit bb175e1

Please sign in to comment.