Skip to content

Commit

Permalink
chore: fix function name in comment (#4833)
Browse files Browse the repository at this point in the history
Signed-off-by: fuyangpengqi <995764973@qq.com>
  • Loading branch information
fuyangpengqi committed Apr 19, 2024
1 parent 0de05b0 commit 0eb9ec4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go/internal/messengerdb/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ func (d *DBWrapper) GetServiceTokens(accountPK string) ([]*messengertypes.Servic
return serviceTokens, nil
}

// GetServiceTokens returns the service tokens for the given accountPK.
// GetServiceToken returns the service tokens for the given accountPK.
func (d *DBWrapper) GetServiceToken(accountPK, tokenID string) (*messengertypes.ServiceToken, error) {
if accountPK == "" {
return nil, errcode.ErrInvalidInput.Wrap(fmt.Errorf("missing accountPK"))
Expand Down
2 changes: 1 addition & 1 deletion go/pkg/bertybridge/service_grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (s *service) ClientInvokeUnary(ctx context.Context, req *ClientInvokeUnary_
return res, nil
}

// CreateStream create a stream
// CreateClientStream create a stream
func (s *service) CreateClientStream(ctx context.Context, req *ClientCreateStream_Request) (*ClientCreateStream_Reply, error) {
client, ok := s.getServiceClient(req.MethodDesc)
if !ok {
Expand Down
4 changes: 2 additions & 2 deletions tool/infra-testing-tool/go/config/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ func (c NodeGroup) getSwarmListenerMultiAddr(ip string, nodeIndex, protocolIndex
}
}

// getSwarmListenerMultiAddr generates swarm listener multi addr
// getSwarmAnnounceMultiAddr generates swarm listener multi addr
func (c NodeGroup) getSwarmAnnounceMultiAddr(nodeIndex, protocolIndex, portIndex int) string {
var ip string

Expand Down Expand Up @@ -570,7 +570,7 @@ func (c NodeGroup) getPublicIP(i int) string {
panic(errors.New("no possible connection possible"))
}

// generatePorts generates random port numbers between lowerLimitPort and upperLimitPort
// generatePort generates random port numbers between lowerLimitPort and upperLimitPort
func (c NodeGroup) generatePort(node int) int {
port := lowerLimitPort + mrand.Intn(upperLimitPort-lowerLimitPort+1)

Expand Down

0 comments on commit 0eb9ec4

Please sign in to comment.