From 376d0b0f35cd789239b4919f5e30b02c8a980b6b Mon Sep 17 00:00:00 2001 From: Marc Ole Bulling Date: Wed, 16 Mar 2022 18:35:17 +0100 Subject: [PATCH] Fixed comments --- internal/configuration/database/Database.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/configuration/database/Database.go b/internal/configuration/database/Database.go index 73b67b6..f4034d9 100644 --- a/internal/configuration/database/Database.go +++ b/internal/configuration/database/Database.go @@ -46,7 +46,7 @@ func GetLengthAvailable() int { return maxKeySize - maxLength } -// Close syncs the bitcaskDb to the filesystem and closes it +// Close syncs the database to the filesystem and closes it func Close() { if bitcaskDb != nil { err := bitcaskDb.Sync() @@ -179,7 +179,7 @@ func GetApiKey(id string) (models.ApiKey, bool) { return result, true } -// SaveApiKey saves the API key to the bitcaskDb. If updateTimeOnly is true, the bitcaskDb might not be synced afterwards +// SaveApiKey saves the API key to the database. If updateTimeOnly is true, the database might not be synced afterwards func SaveApiKey(apikey models.ApiKey, updateTimeOnly bool) { var buf bytes.Buffer enc := gob.NewEncoder(&buf)