Skip to content

Commit ae61c75

Browse files
chore: modify code comment
1 parent 6db5a1d commit ae61c75

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

cmd/onex-gateway/app/options/options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (o *Options) Validate() error {
122122
return utilerrors.NewAggregate(errs)
123123
}
124124

125-
// ApplyTo fills up onex-nightwatch config with options.
125+
// ApplyTo fills up onex-gateway config with options.
126126
func (o *Options) ApplyTo(c *gateway.Config) error {
127127
c.GRPCOptions = o.GRPCOptions
128128
c.HTTPOptions = o.HTTPOptions
@@ -136,7 +136,7 @@ func (o *Options) ApplyTo(c *gateway.Config) error {
136136
return nil
137137
}
138138

139-
// Config return a onex-nightwatch config object.
139+
// Config return an onex-gateway config object.
140140
func (o *Options) Config() (*gateway.Config, error) {
141141
kubeconfig, err := clientcmd.BuildConfigFromFlags("", o.Kubeconfig)
142142
if err != nil {

cmd/onex-nightwatch/app/options/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (o *Options) ApplyTo(c *nightwatch.Config) error {
101101
return nil
102102
}
103103

104-
// Config return a onex-nightwatch config object.
104+
// Config return an onex-nightwatch config object.
105105
func (o *Options) Config() (*nightwatch.Config, error) {
106106
kubeconfig, err := clientcmd.BuildConfigFromFlags("", o.Kubeconfig)
107107
if err != nil {

cmd/onex-pump/app/options/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func (o *Options) ApplyTo(c *pump.Config) error {
8989
return nil
9090
}
9191

92-
// Config return a onex-nightwatch config object.
92+
// Config return an onex-pump config object.
9393
func (o *Options) Config() (*pump.Config, error) {
9494
c := &pump.Config{}
9595

cmd/onex-toyblc/app/options/options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func (o *Options) Validate() error {
114114
return utilerrors.NewAggregate(errs)
115115
}
116116

117-
// ApplyTo fills up onex-nightwatch config with options.
117+
// ApplyTo fills up onex-toyblc config with options.
118118
func (o *Options) ApplyTo(c *toyblc.Config) error {
119119
c.Miner = o.Miner
120120
c.MinMineInterval = o.MinMineInterval
@@ -128,7 +128,7 @@ func (o *Options) ApplyTo(c *toyblc.Config) error {
128128
return nil
129129
}
130130

131-
// Config return a onex-nightwatch config object.
131+
// Config return an onex-toyblc config object.
132132
func (o *Options) Config() (*toyblc.Config, error) {
133133
c := &toyblc.Config{}
134134

cmd/onex-usercenter/app/options/options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func (o *Options) Validate() error {
134134
return utilerrors.NewAggregate(errs)
135135
}
136136

137-
// ApplyTo fills up onex-nightwatch config with options.
137+
// ApplyTo fills up onex-usercenter config with options.
138138
func (o *Options) ApplyTo(c *usercenter.Config) error {
139139
c.GRPCOptions = o.GRPCOptions
140140
c.HTTPOptions = o.HTTPOptions
@@ -149,7 +149,7 @@ func (o *Options) ApplyTo(c *usercenter.Config) error {
149149
return nil
150150
}
151151

152-
// Config return a onex-nightwatch config object.
152+
// Config return an onex-usercenter config object.
153153
func (o *Options) Config() (*usercenter.Config, error) {
154154
c := &usercenter.Config{}
155155

pkg/app/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func WithDescription(desc string) Option {
8383
}
8484
}
8585

86-
// WithHealthCheck is used to set the health check function for the application.
86+
// WithHealthCheckFunc is used to set the health check function for the application.
8787
// The app framework will use the function to start a health check server.
8888
func WithHealthCheckFunc(fn HealthCheckFunc) Option {
8989
return func(a *App) {

0 commit comments

Comments
 (0)