Update to gobook@5e58e0a92b96bee61856a8ce6e75ed849bd504af
This commit is contained in:
@@ -16,10 +16,7 @@ func TestCheckQuotaNotifiesUser(t *testing.T) {
|
||||
}
|
||||
|
||||
const user = "joe@example.org"
|
||||
|
||||
// Simulate a 980MB-used condition for this user.
|
||||
// NOTE: this differs slightly from the printed version.
|
||||
usage["joe@example.org"] = 980000000
|
||||
usage[user] = 980000000 // simulate a 980MB-used condition
|
||||
|
||||
CheckQuota(user)
|
||||
if notifiedUser == "" && notifiedMsg == "" {
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
// See page 312.
|
||||
|
||||
// Package storage is part of a hypothetical cloud storage server.
|
||||
//!+main
|
||||
package storage
|
||||
|
||||
import (
|
||||
@@ -13,7 +12,6 @@ import (
|
||||
"net/smtp"
|
||||
)
|
||||
|
||||
// NOTE: this differs slightly from the printed version.
|
||||
var usage = make(map[string]int64)
|
||||
|
||||
func bytesInUse(username string) int64 { return usage[username] }
|
||||
|
||||
Reference in New Issue
Block a user