Skip to content

Commit

Permalink
fix flaky integration test DemoActorReminderOnceImpl (dapr#553)
Browse files Browse the repository at this point in the history
* add undefined type

Signed-off-by: MregXN <[email protected]>

* npm run pretty-fix

Signed-off-by: MregXN <[email protected]>

* add undefind type for ttl

Signed-off-by: MregXN <[email protected]>

* add undefind type

Signed-off-by: MregXN <[email protected]>

* make type optional

Signed-off-by: MregXN <[email protected]>

---------

Signed-off-by: MregXN <[email protected]>
  • Loading branch information
MregXN authored Nov 27, 2023
1 parent 2d41bc8 commit d33c5a4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions daprdocs/content/en/js-sdk-docs/js-server/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ const daprServer = new DaprServer({
serverPort: "50002", // App Port
serverHttp: myApp,
clientOptions: {
daprHost,
daprPort,
daprHost
daprPort
}
});

Expand Down
4 changes: 2 additions & 2 deletions src/actors/runtime/AbstractActor.ts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default abstract class AbstractActor {
async registerActorReminder<_Type>(
reminderName: string,
dueTime: Temporal.Duration,
period: Temporal.Duration,
period?: Temporal.Duration,
ttl?: Temporal.Duration,
state?: any,
) {
Expand All @@ -115,7 +115,7 @@ export default abstract class AbstractActor {
timerName: string,
callback: string,
dueTime: Temporal.Duration,
period: Temporal.Duration,
period?: Temporal.Duration,
ttl?: Temporal.Duration,
state?: any,
) {
Expand Down
2 changes: 1 addition & 1 deletion src/types/ActorReminder.type.ts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ limitations under the License.
import { Temporal } from "@js-temporal/polyfill";

export type ActorReminderType = {
period: Temporal.Duration; // e.g. 0h0m9s0ms
period?: Temporal.Duration; // e.g. 0h0m9s0ms
dueTime?: Temporal.Duration; // e.g. 1m or 0h0m0s0ms defaults to 0s
data?: any; // the data to pass
ttl?: Temporal.Duration; // e.g. 1m
Expand Down
2 changes: 1 addition & 1 deletion src/types/ActorTimer.type.ts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ limitations under the License.
import { Temporal } from "@js-temporal/polyfill";

export type ActorTimerType = {
period: Temporal.Duration; // e.g. 0h0m9s0ms
period?: Temporal.Duration; // e.g. 0h0m9s0ms
dueTime?: Temporal.Duration; // e.g. 1m or 0h0m0s0ms defaults to 0s
data?: any; // the data to pass
ttl?: Temporal.Duration; // e.g. 1m
Expand Down

0 comments on commit d33c5a4

Please sign in to comment.