Skip to content

Commit

Permalink
Daily arc lint --take GOFMT
Browse files Browse the repository at this point in the history
Reviewed By: leoleovich

Differential Revision: D48238438

fbshipit-source-id: 0fe6df18e925ca07028cb59cdda5c64e16bafac1
  • Loading branch information
abulimov authored and facebook-github-bot committed Aug 11, 2023
1 parent 920ea1c commit bd13200
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example_grpc/goclient/src/katranc/katranc/katranc.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func (kc *KatranClient) ClearAll() {
fmt.Println("Deleting Healthchecks")
hcs := kc.GetAllHcs()
var Somark lb_katran.Somark
for somark, _ := range hcs.Healthchecks {
for somark := range hcs.Healthchecks {
Somark.Somark = uint32(somark)
ok, err := kc.client.DelHealthcheckerDst(context.Background(), &Somark)
if err != nil || !ok.Success {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func searchSlice(i int, s []int) bool {

func writeAffinityToFile(irq int, cpu uint64, ncpus int) {
mask := make([]string, ncpus/32+1, ncpus/32+1)
for i, _ := range mask {
for i := range mask {
mask[i] = "00000000"
}
mask[cpu/32] = fmt.Sprintf("%08x", 1<<(cpu%32))
Expand Down

0 comments on commit bd13200

Please sign in to comment.