Permalink
Browse files

whitespace

  • Loading branch information...
1 parent 18266b2 commit d370b8600e45aef9f6df8af32213787376728af6 @briandorsey committed Mar 7, 2012
Showing with 7 additions and 7 deletions.
  1. +3 −3 sqlitestore/sqlitestore.go
  2. +4 −4 store/store.go
@@ -127,7 +127,7 @@ func (s *SQLiteStore) Update(v version.Version) (err error) {
return
}
_, err = s.db.Exec(
- `insert into version(key, app_id, app, ver, host,
+ `insert into version(key, app_id, app, ver, host,
instance, host_ip, last_update, exact_update)
values(?, ?, ?, ?, ?, ?, ?, ?, ?);`,
v.Key(), v.AppId, v.App, v.Ver, v.Host,
@@ -148,7 +148,7 @@ func (s *SQLiteStore) Versions(AppId string, Host string, Ver string) (
Ver = "%"
}
rows, err := s.db.Query(`
- select app_id, app, ver, host,
+ select app_id, app, ver, host,
instance, host_ip, last_update, exact_update
from version
where app_id like ?
@@ -204,7 +204,7 @@ func (s *SQLiteStore) Trim(t time.Time) (c uint64, err error) {
}
var sqls = []string{
- `create table if not exists version
+ `create table if not exists version
(key varchar not null on conflict replace primary key,
app_id varchar not null,
app varchar not null,
View
@@ -12,20 +12,20 @@ type UpdateStore interface {
Update(v version.Version) (err error)
// App returns an AppSummary for the given AppId.
- // The value of ok follows map indexing conventions:
+ // The value of ok follows map indexing conventions:
// true if AppId is present, false otherwise.
App(AppId string) (as version.AppSummary, ok bool)
- // Apps returns summary information about each application,
+ // Apps returns summary information about each application,
// based on the known Versions.
Apps() (as []version.AppSummary, err error)
// Host returns a HostSummary for the given Host.
- // The value of ok follows map indexing conventions:
+ // The value of ok follows map indexing conventions:
// true if Host is present, false otherwise.
Host(Host string) (hs version.HostSummary, ok bool)
- // Hosts returns summary information about each host,
+ // Hosts returns summary information about each host,
// based on the known Versions.
Hosts() (hs []version.HostSummary, err error)

0 comments on commit d370b86

Please sign in to comment.