Skip to content

Commit

Permalink
style:gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
ViolaPioggia committed Oct 27, 2023
1 parent f486e0e commit 09fe562
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 3 additions & 2 deletions zookeeper/example/standard/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ import (
"context"
"encoding/json"
"fmt"
"net"
"time"

"github.com/cloudwego/hertz/pkg/app/client/discovery"
"github.com/cloudwego/hertz/pkg/app/client/loadbalance"
"github.com/cloudwego/hertz/pkg/protocol"
"net"
"time"

"github.com/cloudwego/hertz/pkg/app/client"
"github.com/cloudwego/hertz/pkg/app/middlewares/client/sd"
Expand Down
9 changes: 4 additions & 5 deletions zookeeper/example/standard/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ package main

import (
"context"
"net"
"sync"
"time"

"github.com/cloudwego/hertz/pkg/app"
"github.com/cloudwego/hertz/pkg/app/server"
"github.com/cloudwego/hertz/pkg/app/server/registry"
"github.com/cloudwego/hertz/pkg/common/utils"
"github.com/cloudwego/hertz/pkg/protocol/consts"
"github.com/hertz-contrib/registry/zookeeper"
"net"
"sync"
"time"
)

var wg sync.WaitGroup
Expand Down Expand Up @@ -65,7 +66,6 @@ func main() {
ctx.JSON(consts.StatusOK, e)
})
h.Spin()

}()
go func() {
defer wg.Done()
Expand All @@ -91,7 +91,6 @@ func main() {
ctx.JSON(consts.StatusOK, e)
})
h.Spin()

}()

wg.Wait()
Expand Down

0 comments on commit 09fe562

Please sign in to comment.