aboutsummaryrefslogtreecommitdiff
path: root/meta.go
diff options
context:
space:
mode:
Diffstat (limited to 'meta.go')
-rw-r--r--meta.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/meta.go b/meta.go
index 659bfa7..1ef9ffc 100644
--- a/meta.go
+++ b/meta.go
@@ -1,12 +1,6 @@
package bolt
-var (
- InvalidError = &Error{"Invalid database", nil}
- VersionMismatchError = &Error{"version mismatch", nil}
-)
-
const magic uint32 = 0xDEADC0DE
-const version uint32 = 1
type meta struct {
magic uint32
@@ -22,7 +16,7 @@ type meta struct {
func (m *meta) validate() error {
if m.magic != magic {
return InvalidError
- } else if m.version != Version {
+ } else if m.version != version {
return VersionMismatchError
}
return nil