add delete test

This commit is contained in:
Umputun
2018-01-10 02:38:44 -06:00
parent 52dfb7f293
commit cb949edd97
3 changed files with 28 additions and 3 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ func (b *BoltDB) SetBlock(siteID string, userID string, status bool) error {
switch status {
case true:
if e := bucket.Put([]byte(userID), []byte(time.Now().Format(time.RFC3339))); e != nil {
if e := bucket.Put([]byte(userID), []byte(time.Now().Format(time.RFC3339Nano))); e != nil {
return errors.Wrapf(e, "failed to put %s to %s", userID, blocksBucketName)
}
case false: