Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
remove switchToBasic fixme
Browse files Browse the repository at this point in the history
  • Loading branch information
schomatis committed Aug 3, 2021
1 parent 7d338e3 commit a5cc9db
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions io/directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,14 +416,6 @@ func (d *HAMTDirectory) switchToBasic(ctx context.Context) (*BasicDirectory, err

return nil
})
// FIXME: The above was adapted from SwitchToSharding. We can probably optimize:
// 2. Do not enumerate all link from scratch (harder than previous
// item). We call this function only from the UpgradeableDirectory
// when we went below the threshold: the detection will be done through
// (partial) enumeration. We may be able to reuse some of that work
// (likely retaining the links in a cache). (All this is uncertain
// at this point as we don't know how partial enumeration will be
// implemented.)

return basicDir, nil
}
Expand Down

0 comments on commit a5cc9db

Please sign in to comment.