Skip to content

Commit

Permalink
Fix for gofmt
Browse files Browse the repository at this point in the history
Signed-off-by: morimoto-cybozu <kenji_morimoto@cybozu.co.jp>
  • Loading branch information
morimoto-cybozu committed Oct 25, 2022
1 parent c980621 commit 7c7f010
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions dhcpd/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
)

// DHCPREQUEST has three use-cases.
// 1. accept offer from a server.
// 2. confirm previously assigned IP address.
// 3. renew/rebind lease for an already received address.
// 1. accept offer from a server.
// 2. confirm previously assigned IP address.
// 3. renew/rebind lease for an already received address.
//
// To distinguish these three, "server identifier" option (54) and
// "requested IP address" option (50) are used.
Expand Down
10 changes: 5 additions & 5 deletions model.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ type SchemaModel interface {
// Receiving a value from the channel effectively guarantees that
// the driver gets ready.
//
// ch := make(chan struct{})
// well.Go(func(ctx context.Context) error {
// driver.Run(ctx, ch)
// })
// <-ch
// ch := make(chan struct{})
// well.Go(func(ctx context.Context) error {
// driver.Run(ctx, ch)
// })
// <-ch
type Runner interface {
Run(ctx context.Context, ch chan<- struct{}) error
}
Expand Down

0 comments on commit 7c7f010

Please sign in to comment.