Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
sdojjy committed Aug 14, 2024
2 parents 3e670b4 + 8ceafea commit 8c493f2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
17 changes: 17 additions & 0 deletions pkg/common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,20 @@ func (d *DispatcherID) DecodeMsg(dc *msgp.Reader) error {
}

type SchemaID int64

type GID struct {
low uint64
high uint64
}

func (g GID) IsZero() bool {
return g.low == 0 && g.high == 0
}

func NewGID() GID {
uuid := uuid.New()
return GID{
low: binary.LittleEndian.Uint64(uuid[0:8]),
high: binary.LittleEndian.Uint64(uuid[8:16]),
}
}
1 change: 0 additions & 1 deletion utils/dynstream/path.go

This file was deleted.

0 comments on commit 8c493f2

Please sign in to comment.