Skip to content

Commit 7fddb7e

Browse files
authored
Fix duplicate snipsync IDs shared with hello-world (#502)
The empty and sleep-for-days samples were scaffolded from hello-world and kept its snippet IDs, so typescript-hello-worker and typescript-hello-client were each defined in three files. Snipsync resolves duplicates silently, so a doc referencing typescript-hello-worker got sleep-for-days rather than hello-world. Renames the copies so both IDs are unique to hello-world.
1 parent 86f13a6 commit 7fddb7e

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

empty/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// @@@SNIPSTART typescript-hello-client
1+
// @@@SNIPSTART typescript-empty-client
22
import { Connection, Client } from '@temporalio/client';
33
import { loadClientConnectConfig } from '@temporalio/envconfig';
44
import { nanoid } from 'nanoid';

empty/src/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// @@@SNIPSTART typescript-hello-worker
1+
// @@@SNIPSTART typescript-empty-worker
22
import { NativeConnection, Worker } from '@temporalio/worker';
33
import * as activities from './activities';
44
import { TASK_QUEUE_NAME } from './shared';

sleep-for-days/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// @@@SNIPSTART typescript-hello-client
1+
// @@@SNIPSTART typescript-sleep-for-days-client
22
import { Connection, Client } from '@temporalio/client';
33
import { loadClientConnectConfig } from '@temporalio/envconfig';
44
import { sleepForDays } from './workflows';

sleep-for-days/src/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// @@@SNIPSTART typescript-hello-worker
1+
// @@@SNIPSTART typescript-sleep-for-days-worker
22
import { NativeConnection, Worker } from '@temporalio/worker';
33
import * as activities from './activities';
44

0 commit comments

Comments
 (0)