Skip to content

Commit fa211af

Browse files
authored
Merge pull request dapr#7700 from momantech/master
Fix some comments
2 parents 014c171 + 0be5292 commit fa211af

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

pkg/actors/reminders/reminders.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ func (r *reminders) getRemindersForActorType(ctx context.Context, actorType stri
854854
return reminderRefs, actorMetadata, nil
855855
}
856856

857-
// getActorMetadata gets the metadata object for the given actor type.
857+
// getActorTypeMetadata gets the metadata object for the given actor type.
858858
// If "migrate" is true, it also performs migration of reminders if needed. Note that this should be set to "true" only by a caller who owns a lock via evaluationChan.
859859
func (r *reminders) getActorTypeMetadata(ctx context.Context, actorType string, migrate bool) (*ActorMetadata, error) {
860860
storeName, store, err := r.stateStoreProviderFn()

pkg/api/grpc/grpc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func NewAPI(opts APIOpts) API {
123123
}
124124
}
125125

126-
// validateAndGetPubsbuAndTopic validates the request parameters and returns the pubsub interface, pubsub name, topic name, rawPayload metadata if set
126+
// validateAndGetPubsubAndTopic validates the request parameters and returns the pubsub interface, pubsub name, topic name, rawPayload metadata if set
127127
// or an error.
128128
func (a *api) validateAndGetPubsubAndTopic(pubsubName, topic string, reqMeta map[string]string) (pubsub.PubSub, string, string, bool, error) {
129129
var err error

pkg/apis/httpEndpoint/v1alpha1/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (h HTTPEndpoint) HasTLSClientCert() bool {
103103
return h.Spec.ClientTLS != nil && h.Spec.ClientTLS.Certificate != nil && h.Spec.ClientTLS.Certificate.Value != nil
104104
}
105105

106-
// HasTLSClientKey returns a bool indicating if the HTTP endpoint contains a tls client key
106+
// HasTLSPrivateKey returns a bool indicating if the HTTP endpoint contains a tls client key
107107
func (h HTTPEndpoint) HasTLSPrivateKey() bool {
108108
return h.Spec.ClientTLS != nil && h.Spec.ClientTLS.PrivateKey != nil && h.Spec.ClientTLS.PrivateKey.Value != nil
109109
}

pkg/messaging/v1/invoke_method_request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ func (imr *InvokeMethodRequest) ResetMessageData() {
273273
imr.r.GetMessage().GetData().Reset()
274274
}
275275

276-
// ContenType returns the content type of the message.
276+
// ContentType returns the content type of the message.
277277
func (imr *InvokeMethodRequest) ContentType() string {
278278
m := imr.r.GetMessage()
279279
if m == nil {

pkg/messaging/v1/invoke_method_response.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ func (imr *InvokeMethodResponse) ResetMessageData() {
230230
imr.r.GetMessage().GetData().Reset()
231231
}
232232

233-
// ContenType returns the content type of the message.
233+
// ContentType returns the content type of the message.
234234
func (imr *InvokeMethodResponse) ContentType() string {
235235
m := imr.r.GetMessage()
236236
if m == nil {

0 commit comments

Comments
 (0)