Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cuculus-dev/snowflake
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.1.0
Choose a base ref
...
head repository: cuculus-dev/snowflake
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Feb 19, 2024

  1. snowflakeの起点を変更 (#1)

    ## Issue
    
    ## 変更内容
    snowflakeの起点となるタイムスタンプを変更します。
    過去10年にすることで他サービスからの投稿を移行するといったことが将来的に可能に。
    
    ## 確認方法
    (確認方法を記載してください)
    
    ## Screenshot (任意)
    takecchi authored Feb 19, 2024
    Copy the full SHA
    e09a67b View commit details
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/index.ts
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;