Skip to content

Commit 4c27e02

Browse files
authored
chore: fix some comments (#2793)
Signed-off-by: cuishuang <imcusg@gmail.com>
1 parent fd1f8d9 commit 4c27e02

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

protocol/dubbo/hessian2/hessian_dubbo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func NewHessianCodec(reader *bufio.Reader) *HessianCodec {
7676
}
7777
}
7878

79-
// NewHessianCodec generate a new hessian codec instance
79+
// NewHessianCodecCustom generate a new hessian codec instance
8080
func NewHessianCodecCustom(pkgType PackageType, reader *bufio.Reader, bodyLen int) *HessianCodec {
8181
return &HessianCodec{
8282
pkgType: pkgType,

protocol/dubbo/impl/response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type ResponsePayload struct {
2323
Attachments map[string]interface{}
2424
}
2525

26-
// NewResponse create a new ResponsePayload
26+
// NewResponsePayload create a new ResponsePayload
2727
func NewResponsePayload(rspObj interface{}, exception error, attachments map[string]interface{}) *ResponsePayload {
2828
if attachments == nil {
2929
attachments = make(map[string]interface{})

protocol/dubbo3/dubbo3_exporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func NewDubboExporter(key string, invoker protocol.Invoker, exporterMap *sync.Ma
4848
}
4949
}
5050

51-
// Unexport unexport dubbo3 service exporter.
51+
// UnExport unexport dubbo3 service exporter.
5252
func (de *DubboExporter) UnExport() {
5353
url := de.GetInvoker().GetURL()
5454
interfaceName := url.GetParam(constant.InterfaceKey, "")

protocol/grpc/internal/routeguide/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func init() {
3636
config.SetConsumerService(&RouteGuideClientImpl{})
3737
}
3838

39-
// printFeatures lists all the features within the given bounding Rectangle.
39+
// PrintFeatures lists all the features within the given bounding Rectangle.
4040
func PrintFeatures(stream RouteGuide_ListFeaturesClient) {
4141
for {
4242
feature, err := stream.Recv()
@@ -51,7 +51,7 @@ func PrintFeatures(stream RouteGuide_ListFeaturesClient) {
5151
}
5252
}
5353

54-
// runRecordRoute sends a sequence of points to server and expects to get a RouteSummary from server.
54+
// RunRecordRoute sends a sequence of points to server and expects to get a RouteSummary from server.
5555
func RunRecordRoute(stream RouteGuide_RecordRouteClient) {
5656
// Create a random number of random points
5757
r := rand.New(rand.NewSource(time.Now().UnixNano()))

protocol/jsonrpc/jsonrpc_exporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func NewJsonrpcExporter(key string, invoker protocol.Invoker, exporterMap *sync.
4343
}
4444
}
4545

46-
// Unexport exported JSON RPC service.
46+
// UnExport exported JSON RPC service.
4747
func (je *JsonrpcExporter) UnExport() {
4848
interfaceName := je.GetInvoker().GetURL().GetParam(constant.InterfaceKey, "")
4949
err := common.ServiceMap.UnRegister(interfaceName, JSONRPC, je.GetInvoker().GetURL().ServiceKey())

protocol/rest/rest_exporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func NewRestExporter(key string, invoker protocol.Invoker, exporterMap *sync.Map
4343
}
4444
}
4545

46-
// Unexport unexport the RestExporter
46+
// UnExport unexport the RestExporter
4747
func (re *RestExporter) UnExport() {
4848
interfaceName := re.GetInvoker().GetURL().GetParam(constant.InterfaceKey, "")
4949
err := common.ServiceMap.UnRegister(interfaceName, REST, re.GetInvoker().GetURL().ServiceKey())

registry/etcdv3/service_discovery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ func (e *etcdV3ServiceDiscovery) DataChange(eventType remoting.Event) bool {
300300
return true
301301
}
302302

303-
// newEtcdv3ServiceDiscovery
303+
// newEtcdV3ServiceDiscovery
304304
func newEtcdV3ServiceDiscovery(url *common.URL) (registry.ServiceDiscovery, error) {
305305
initLock.Lock()
306306
defer initLock.Unlock()

xds/credentials/certgenerate/generate_cert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ func genCertTemplateFromCSR(csr *x509.CertificateRequest, subjectIDs []string, t
328328
}, nil
329329
}
330330

331-
// genCertTemplateFromoptions generates a certificate template with the given options.
331+
// genCertTemplateFromOptions generates a certificate template with the given options.
332332
func genCertTemplateFromOptions(options CertOptions) (*x509.Certificate, error) {
333333
var keyUsage x509.KeyUsage
334334
if options.IsCA {

0 commit comments

Comments
 (0)