Skip to content

Commit

Permalink
Fix typo NewTamperingApi > NewTamperingAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
iknite committed Mar 8, 2019
1 parent 914c538 commit c03b925
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/tampering/tamper_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ type tamperEvent struct {
Value string
}

// NewTamperingApi will return a mux server with the endpoint required to
// NewTamperingAPI will return a mux server with the endpoint required to
// tamper the server. it's a internal debug implementation. Running a server
// with this enabled will run useless the qed server.
func NewTamperingApi(store storage.DeletableStore, hasher hashing.Hasher) *http.ServeMux {
func NewTamperingAPI(store storage.DeletableStore, hasher hashing.Hasher) *http.ServeMux {
api := http.NewServeMux()
api.HandleFunc("/tamper", apihttp.AuthHandlerMiddleware(http.HandlerFunc(tamperFunc(store, hasher))))
return api
Expand Down
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func NewServer(conf *Config) (*Server, error) {
// Get id from the last number of any server Addr (HttpAddr in this case)
id, _ := strconv.Atoi(conf.HTTPAddr[len(conf.HTTPAddr)-1:])
if conf.EnableTampering {
tamperMux := tampering.NewTamperingApi(store, hashing.NewSha256Hasher())
tamperMux := tampering.NewTamperingAPI(store, hashing.NewSha256Hasher())
server.tamperingServer = newHTTPServer(fmt.Sprintf("localhost:1880%d", id), tamperMux)
}

Expand Down

0 comments on commit c03b925

Please sign in to comment.