Skip to content

Commit

Permalink
chore: remove redundant comments and refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
supercaracal committed Feb 10, 2024
1 parent 3b80cb4 commit 8bb990c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 4 additions & 2 deletions cmd/debug/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (
const (
appName = "scram-sha-256"
staticDir = "docs"
rootFile = "index.html"
port = 3000
)

var (
Expand All @@ -27,11 +29,11 @@ func makeStaticHandler(f string) func(http.ResponseWriter, *http.Request) {
}

func main() {
http.HandleFunc("/", makeStaticHandler("index.html"))
http.HandleFunc("/", makeStaticHandler(rootFile))

for _, f := range staticFiles {
http.HandleFunc(fmt.Sprintf("/%s/%s", appName, f), makeStaticHandler(f))
}

http.ListenAndServe(":3000", nil)
http.ListenAndServe(fmt.Sprintf(":%d", port), nil)
}
6 changes: 0 additions & 6 deletions cmd/term/main.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
package main

// @see https://github.com/postgres/postgres/blob/c30f54ad732ca5c8762bb68bbe0f51de9137dd72/src/interfaces/libpq/fe-auth.c#L1167-L1285
// @see https://github.com/postgres/postgres/blob/e6bdfd9700ebfc7df811c97c2fc46d7e94e329a2/src/interfaces/libpq/fe-auth-scram.c#L868-L905
// @see https://github.com/postgres/postgres/blob/c30f54ad732ca5c8762bb68bbe0f51de9137dd72/src/port/pg_strong_random.c#L66-L96
// @see https://github.com/postgres/postgres/blob/e6bdfd9700ebfc7df811c97c2fc46d7e94e329a2/src/common/scram-common.c#L160-L274
// @see https://github.com/postgres/postgres/blob/e6bdfd9700ebfc7df811c97c2fc46d7e94e329a2/src/common/scram-common.c#L27-L85

import (
"bufio"
"fmt"
Expand Down

0 comments on commit 8bb990c

Please sign in to comment.