MCPcopy Create free account
hub / github.com/daodst/chat / rowsToUserIDs

Function rowsToUserIDs

keyserver/storage/sqlite3/stale_device_lists.go:111–121  ·  view source on GitHub ↗
(ctx context.Context, rows *sql.Rows)

Source from the content-addressed store, hash-verified

109}
110
111func rowsToUserIDs(ctx context.Context, rows *sql.Rows) (result []string, err error) {
112 defer internal.CloseAndLogIfError(ctx, rows, "closing rowsToUserIDs failed")
113 for rows.Next() {
114 var userID string
115 if err := rows.Scan(&userID); err != nil {
116 return nil, err
117 }
118 result = append(result, userID)
119 }
120 return result, rows.Err()
121}

Callers 1

Calls 1

ErrMethod · 0.80

Tested by

no test coverage detected