Consolidate TODOs

This commit is contained in:
David Dworken 2023-11-12 05:04:55 -08:00
parent 6c24ddfd46
commit c52dbebb1b
No known key found for this signature in database
2 changed files with 1 additions and 3 deletions

View File

@ -429,11 +429,11 @@ func parseFishHistory(homedir string) Seq2[string, error] {
type (
// Represents an iterator of (K,V). Equivalent of the future Go stdlib type iter.Seq2.
// TODO: Swap this to the stdlib function once it has been released, along with the below two functions
Seq2[K, V any] func(yield func(K, V) bool) bool
)
// Concatenate two iterators. Equivalent of the future Go stdlib function iter.Concat2.
// TODO: Swap this to the stdlib function
func concatIterators(iters ...Seq2[string, error]) Seq2[string, error] {
return func(yield func(string, error) bool) bool {
for _, seq := range iters {
@ -446,7 +446,6 @@ func concatIterators(iters ...Seq2[string, error]) Seq2[string, error] {
}
// Convert a slice into an iterator. Equivalent of the future Go stdlib function iter.Values
// TODO: Swap this to the stdlib function
func Values[Slice ~[]Elem, Elem any](s Slice) Seq2[Elem, error] {
return func(yield func(Elem, error) bool) bool {
for _, v := range s {

View File

@ -30,7 +30,6 @@ type Device struct {
RegistrationIp string `json:"registration_ip"`
RegistrationDate time.Time `json:"registration_date"`
// Test devices, that should be aggressively cleaned from the DB
// TODO: Clean these from the DB
IsIntegrationTestDevice bool `json:"is_integration_test_device"`
}