Loading server/core_tournament.go +3 −4 Original line number Diff line number Diff line Loading @@ -22,7 +22,6 @@ import ( "encoding/gob" "errors" "fmt" "github.com/golang/protobuf/ptypes/timestamp" "strconv" "strings" "time" Loading Loading @@ -242,14 +241,14 @@ func TournamentsGet(ctx context.Context, logger *zap.Logger, db *sql.DB, leaderb EndActive: uint32(endActiveUnix), NextReset: uint32(expiryUnix), Metadata: tournament.Metadata, CreateTime: ×tamp.Timestamp{Seconds: tournament.CreateTime}, StartTime: ×tamp.Timestamp{Seconds: tournament.StartTime}, CreateTime: ×tamppb.Timestamp{Seconds: tournament.CreateTime}, StartTime: ×tamppb.Timestamp{Seconds: tournament.StartTime}, Duration: uint32(tournament.Duration), StartActive: uint32(startActive), } if endTime > 0 { tournamentRecord.EndTime = ×tamp.Timestamp{Seconds: endTime} tournamentRecord.EndTime = ×tamppb.Timestamp{Seconds: endTime} } records = append(records, tournamentRecord) Loading Loading
server/core_tournament.go +3 −4 Original line number Diff line number Diff line Loading @@ -22,7 +22,6 @@ import ( "encoding/gob" "errors" "fmt" "github.com/golang/protobuf/ptypes/timestamp" "strconv" "strings" "time" Loading Loading @@ -242,14 +241,14 @@ func TournamentsGet(ctx context.Context, logger *zap.Logger, db *sql.DB, leaderb EndActive: uint32(endActiveUnix), NextReset: uint32(expiryUnix), Metadata: tournament.Metadata, CreateTime: ×tamp.Timestamp{Seconds: tournament.CreateTime}, StartTime: ×tamp.Timestamp{Seconds: tournament.StartTime}, CreateTime: ×tamppb.Timestamp{Seconds: tournament.CreateTime}, StartTime: ×tamppb.Timestamp{Seconds: tournament.StartTime}, Duration: uint32(tournament.Duration), StartActive: uint32(startActive), } if endTime > 0 { tournamentRecord.EndTime = ×tamp.Timestamp{Seconds: endTime} tournamentRecord.EndTime = ×tamppb.Timestamp{Seconds: endTime} } records = append(records, tournamentRecord) Loading