remove unused function

This commit is contained in:
chrislu 2024-06-25 09:18:11 -07:00
parent 9ac1023362
commit 90182e97fe
3 changed files with 0 additions and 10 deletions

View File

@ -30,7 +30,3 @@ func (m *MemorySequencer) SetMax(seenValue uint64) {
m.counter = seenValue + 1
}
}
func (m *MemorySequencer) Peek() uint64 {
return m.counter
}

View File

@ -3,5 +3,4 @@ package sequence
type Sequencer interface {
NextFileId(count uint64) uint64
SetMax(uint64)
Peek() uint64
}

View File

@ -42,8 +42,3 @@ func (m *SnowflakeSequencer) NextFileId(count uint64) uint64 {
// ignore setmax as we are snowflake
func (m *SnowflakeSequencer) SetMax(seenValue uint64) {
}
// return a new id as no Peek is stored
func (m *SnowflakeSequencer) Peek() uint64 {
return uint64(m.node.Generate().Int64())
}