Skip to content

Commit 5f963bb

Browse files
committed
Fix lint errors.
1 parent fa4d085 commit 5f963bb

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

plm/repl.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,6 @@ func (r *Repl) applyDDLChange(ctx context.Context, change *ChangeEvent) error {
642642
break
643643
}
644644

645-
// TODO: CHeck if it is shadrded
646-
647645
err = r.catalog.CreateCollection(ctx,
648646
change.Namespace.Database,
649647
change.Namespace.Collection,
@@ -680,7 +678,6 @@ func (r *Repl) applyDDLChange(ctx context.Context, change *ChangeEvent) error {
680678
lg.Infof("Database %q has been dropped", change.Namespace)
681679

682680
case CreateIndexes:
683-
// TODO: check the indexes status
684681
event := change.Event.(CreateIndexesEvent) //nolint:forcetypeassert
685682
err = r.catalog.CreateIndexes(ctx,
686683
change.Namespace.Database,

topo/schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ func GetCollectionShardingInfo(ctx context.Context, m *mongo.Client, dbName, col
252252
return nil, errors.Wrap(err, "decode chunk")
253253
}
254254

255-
ci := ChunkInfo{
255+
ci := ChunkInfo{ //nolint:forcetypeassert
256256
Shard: c["shard"].(string),
257257
Min: c["min"].(bson.M),
258258
Max: c["max"].(bson.M),

0 commit comments

Comments
 (0)