From fc6505a0fff08bb6f8e6c615bc930ca2630d1d0e Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Fri, 20 Apr 2018 03:02:49 -0400 Subject: [PATCH] macaroons: export db filename --- macaroons/service.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/macaroons/service.go b/macaroons/service.go index 87ebc31a..91480ead 100644 --- a/macaroons/service.go +++ b/macaroons/service.go @@ -18,9 +18,9 @@ import ( ) var ( - // dbFileName is the filename within the data directory which contains + // DBFilename is the filename within the data directory which contains // the macaroon stores. - dbFilename = "macaroons.db" + DBFilename = "macaroons.db" ) // Service encapsulates bakery.Bakery and adds a Close() method that zeroes the @@ -42,7 +42,7 @@ type Service struct { func NewService(dir string, checks ...Checker) (*Service, error) { // Open the database that we'll use to store the primary macaroon key, // and all generated macaroons+caveats. - macaroonDB, err := bolt.Open(path.Join(dir, dbFilename), 0600, + macaroonDB, err := bolt.Open(path.Join(dir, DBFilename), 0600, bolt.DefaultOptions) if err != nil { return nil, err