Skip to content

Commit

Permalink
snowflakeの起点を変更 (#1)
Browse files Browse the repository at this point in the history
## Issue

## 変更内容
snowflakeの起点となるタイムスタンプを変更します。
過去10年にすることで他サービスからの投稿を移行するといったことが将来的に可能に。

## 確認方法
(確認方法を記載してください)

## Screenshot (任意)
  • Loading branch information
takecchi authored Feb 19, 2024
1 parent cb615db commit e09a67b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export class Snowflake {
private static readonly EPOCH = 1690815600000n;
private static readonly EPOCH = 1288834974657n;
private static readonly WORKER_ID_BITS = 10n;
private static readonly SEQUENCE_BITS = 12n;

Expand Down

0 comments on commit e09a67b

Please sign in to comment.