func getTime(tx *bolt.Tx, thread string) (int64, error) { var stamp int64 k := db.MustTob(thread) _, err := db.Get(tx, "keylibTS", k, &stamp) return stamp, err }
//GetFromDB gets DB db. func GetFromDB(tx *bolt.Tx, h *Head) (*DB, error) { d := DB{} _, err := db.Get(tx, "record", h.ToKey(), &d) return &d, err }
func getThread(tx *bolt.Tx, stamp int64) (string, error) { var thread string k := db.MustTob(stamp) _, err := db.Get(tx, "keylibST", k, &thread) return thread, err }