Skip to content

Commit 2dc5c87

Browse files
authored
chore: fix function names in comment (dapr#7687)
Signed-off-by: kindknow <[email protected]>
1 parent 2f26e92 commit 2dc5c87

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/actors/internal/reminder_period.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (p ReminderPeriod) HasRepeats() bool {
5858
(p.years != 0 || p.months != 0 || p.days != 0 || p.period != 0)
5959
}
6060

61-
// GetNext returns the next time the periodic reminder should fire after a given time.
61+
// GetFollowing returns the next time the periodic reminder should fire after a given time.
6262
func (p ReminderPeriod) GetFollowing(t time.Time) time.Time {
6363
return t.AddDate(p.years, p.months, p.days).Add(p.period)
6464
}

pkg/actors/placement/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func (c *placementClient) disconnect() {
107107
c.disconnectFn(noop)
108108
}
109109

110-
// disonnectFn disconnects from the current server providing a way to run a function inside the lock in case of new disconnection occurs.
110+
// disconnectFn disconnects from the current server providing a way to run a function inside the lock in case of new disconnection occurs.
111111
// the function will not be executed in case of the stream is already disconnected.
112112
func (c *placementClient) disconnectFn(insideLockFn func()) {
113113
c.streamConnectedCond.L.Lock()
@@ -153,7 +153,7 @@ func (c *placementClient) recv() (*v1pb.PlacementOrder, error) {
153153
return stream.Recv() // cannot recv in parallel
154154
}
155155

156-
// sned is a convenient way of invoking send providing thread-safe guarantees with `CloseSend` operations.
156+
// send is a convenient way of invoking send providing thread-safe guarantees with `CloseSend` operations.
157157
func (c *placementClient) send(host *v1pb.Host) error {
158158
c.streamConnectedCond.L.Lock()
159159
stream := c.clientStream

0 commit comments

Comments
 (0)