satellite/accounting: Fix typos in doc comments

Change-Id: I497bebe152848e023d927337c61e3eee73b87697
This commit is contained in:
Ivan Fraixedes 2022-06-21 12:05:01 +02:00 committed by Storj Robot
parent 0dba785798
commit 6e8e86a0b7
2 changed files with 2 additions and 2 deletions

View File

@ -277,7 +277,7 @@ type Cache interface {
GetProjectBandwidthUsage(ctx context.Context, projectID uuid.UUID, now time.Time) (currentUsed int64, err error)
// GetProjectSegmentUsage returns the project's segment usage.
GetProjectSegmentUsage(ctx context.Context, projectID uuid.UUID) (currentUsed int64, err error)
// InsertProjectBanddwitdhUsage inserts a project banndwidth usage if it
// InsertProjectBandwidthUsage inserts a project bandwidth usage if it
// doesn't exist. It returns true if it's inserted, otherwise false.
InsertProjectBandwidthUsage(ctx context.Context, projectID uuid.UUID, value int64, ttl time.Duration, now time.Time) (inserted bool, _ error)
// UpdateProjectBandwidthUsage updates the project's bandwidth usage increasing

View File

@ -86,7 +86,7 @@ func (cache *redisLiveAccounting) GetProjectBandwidthUsage(ctx context.Context,
return cache.getInt64(ctx, createBandwidthProjectIDKey(projectID, now))
}
// InsertProjectBanddwitdhUsage inserts a project banndwidth usage if it
// InsertProjectBandwidthUsage inserts a project bandwidth usage if it
// doesn't exist. It returns true if it's inserted, otherwise false.
func (cache *redisLiveAccounting) InsertProjectBandwidthUsage(ctx context.Context, projectID uuid.UUID, value int64, ttl time.Duration, now time.Time) (inserted bool, err error) {
mon.Task()(&ctx, projectID, value, ttl, now)(&err)