storj/storagenode/storagenodedb/usedserials.go
Moby von Briesen dc57640d9c storagenode/piecestore: switch usedserials db for in-memory usedserials store
Part 2 of moving usedserials in memory
* Drop usedserials table in storagenodedb
* Use in-memory usedserials store in place of db for order limit
verification
* Update order limit grace period to be only one hour - this means
uplinks must send their order limits to storagenodes within an hour of
receiving them

Change-Id: I37a0e1d2ca6cb80854a3ef495af2d1d1f92e9f03
2020-05-28 12:52:52 -04:00

13 lines
352 B
Go

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
package storagenodedb
// UsedSerialsDBName represents the database name.
const UsedSerialsDBName = "used_serial"
// usedSerialsDB is necessary for previous migration steps, even though the usedserials db is no longer used.
type usedSerialsDB struct {
dbContainerImpl
}