removed all references to "transaction"

This commit is contained in:
Jimmy Zelinskie
2013-11-23 23:48:38 -05:00
parent 31e618c8d9
commit 9382ac482e
10 changed files with 1698 additions and 1708 deletions
+2 -2
View File
@@ -117,13 +117,13 @@ func fail(err error, w http.ResponseWriter, r *http.Request) {
w.(http.Flusher).Flush()
}
func validateUser(tx tracker.Conn, dir string) (*storage.User, error) {
func validateUser(conn tracker.Conn, dir string) (*storage.User, error) {
if len(dir) != 34 {
return nil, errors.New("Passkey is invalid")
}
passkey := dir[1:33]
user, exists, err := tx.FindUser(passkey)
user, exists, err := conn.FindUser(passkey)
if err != nil {
log.Panicf("server: %s", err)
}