Skip to content

Commit

Permalink
Merge pull request #284 from alicebob/gofmt
Browse files Browse the repository at this point in the history
run gofmt
  • Loading branch information
alicebob committed Aug 5, 2022
2 parents 4ab5f42 + 74b9ea9 commit 5bda296
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
8 changes: 3 additions & 5 deletions geo.go
Expand Up @@ -21,12 +21,10 @@ func hsin(theta float64) float64 {
}

// distance function returns the distance (in meters) between two points of
// a given longitude and latitude relatively accurately (using a spherical
// approximation of the Earth) through the Haversin Distance Formula for
// great arc distance on a sphere with accuracy for small distances
//
// a given longitude and latitude relatively accurately (using a spherical
// approximation of the Earth) through the Haversin Distance Formula for
// great arc distance on a sphere with accuracy for small distances
// point coordinates are supplied in degrees and converted into rad. in the func
//
// distance returned is meters
// http://en.wikipedia.org/wiki/Haversine_formula
// Source: https://gist.github.com/cdipaolo/d3f8db3848278b49db68
Expand Down
13 changes: 7 additions & 6 deletions miniredis.go
Expand Up @@ -13,7 +13,6 @@
//
// For direct use you can select a Redis database with either `s.Select(12);
// s.Get("foo")` or `s.DB(12).Get("foo")`.
//
package miniredis

import (
Expand Down Expand Up @@ -346,9 +345,9 @@ func (m *Miniredis) Server() *server.Server {
// Dump limits the maximum length of each key:value to "DumpMaxLineLen" characters.
// To increase that, call something like:
//
// miniredis.DumpMaxLineLen = 1024
// mr, _ = miniredis.Run()
// mr.Dump()
// miniredis.DumpMaxLineLen = 1024
// mr, _ = miniredis.Run()
// mr.Dump()
func (m *Miniredis) Dump() string {
m.Lock()
defer m.Unlock()
Expand Down Expand Up @@ -418,8 +417,10 @@ func (m *Miniredis) SetTime(t time.Time) {
}

// make every command return this message. For example:
// LOADING Redis is loading the dataset in memory
// MASTERDOWN Link with MASTER is down and replica-serve-stale-data is set to 'no'.
//
// LOADING Redis is loading the dataset in memory
// MASTERDOWN Link with MASTER is down and replica-serve-stale-data is set to 'no'.
//
// Clear it with an empty string. Don't add newlines.
func (m *Miniredis) SetError(msg string) {
cb := server.Hook(nil)
Expand Down

0 comments on commit 5bda296

Please sign in to comment.