Skip to content

Commit

Permalink
refactor: port name
Browse files Browse the repository at this point in the history
  • Loading branch information
w-h-a committed Sep 21, 2024
1 parent 9700871 commit 2848d33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sidecar/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type SidecarOption func(o *SidecarOptions)
type SidecarOptions struct {
ServiceName string
HttpPort Port
RpcPort Port
GrpcPort Port
ServicePort Port
Client client.Client
Stores map[string]store.Store
Expand All @@ -38,9 +38,9 @@ func SidecarWithHttpPort(p Port) SidecarOption {
}
}

func SidecarWithRpcPort(p Port) SidecarOption {
func SidecarWithGrpcPort(p Port) SidecarOption {
return func(o *SidecarOptions) {
o.RpcPort = p
o.GrpcPort = p
}
}

Expand Down

0 comments on commit 2848d33

Please sign in to comment.