Skip to content
Permalink
Browse files

Added goquePrefixQueue to queue types and added test

  • Loading branch information...
beeker1121 committed Mar 18, 2017
1 parent 9e41397 commit bdcb1e8b291022fa913ed99291688db31302cf3f
Showing with 2 additions and 1 deletion.
  1. +1 −0 file.go
  2. +1 −1 prefix_queue.go
@@ -14,6 +14,7 @@ const (
goqueStack goqueType = iota
goqueQueue
goquePriorityQueue
goquePrefixQueue
)

// checkGoqueType checks if the type of Goque data structure
@@ -56,7 +56,7 @@ func OpenPrefixQueue(dataDir string) (*PrefixQueue, error) {
}

// Check if this Goque type can open the requested data directory.
ok, err := checkGoqueType(dataDir, goqueQueue)
ok, err := checkGoqueType(dataDir, goquePrefixQueue)
if err != nil {
return nil, err
}

0 comments on commit bdcb1e8

Please sign in to comment.
You can’t perform that action at this time.