Skip to content

Commit

Permalink
Fix example code formatting in server.controller
Browse files Browse the repository at this point in the history
  • Loading branch information
antw committed Jan 2, 2022
1 parent 1fe44ff commit 90c0860
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions internal/server/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,17 +228,15 @@ func (c *controller) allStores() []storage.ReadableStore {
//
// For example:
//
// ```
// c.iterateAggregated(
// func(store storage.ReadableStore) sstable.CurriedIterable {
// return store.Ascend
// },
// func(key string, value []byte) bool {
// // Do something with the key-value pair.
// return true
// },
// )
// ```
// c.iterateAggregated(
// func(store storage.ReadableStore) sstable.CurriedIterable {
// return store.Ascend
// },
// func(key string, value []byte) bool {
// // Do something with the key-value pair.
// return true
// },
// )
func (c *controller) iterateAggregated(
getter func(storage.ReadableStore) sstable.CurriedIterable,
it storage.Iterator,
Expand Down

0 comments on commit 90c0860

Please sign in to comment.