- Sort Score
- Num 10 results
- Language All
Results 481 - 490 of 1,517 for Take (0.02 seconds)
-
cmd/peer-rest-client.go
if !globalIsDistErasure { // Only useful in distributed setups return nil, nil } hosts := endpoints.hostsSorted() remote = make([]*peerRESTClient, 0, len(hosts)) all = make([]*peerRESTClient, len(hosts)) for i, host := range hosts { if host == nil { continue } all[i] = newPeerRESTClient(host, endpoints.FindGridHostsFromPeer(host))Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 26.1K bytes - Click Count (0) -
cmd/erasure-object_test.go
if err != nil { t.Fatal(err) } // Make 9 disks offline, which leaves less than quorum number of disks // in a 16 disk Erasure setup. The original disks are 'replaced' with // naughtyDisks that fail after 'f' successful StorageAPI method // invocations, where f - [0,4) for f := range 2 { diskErrors := make(map[int]error) for i := 0; i <= f; i++ { diskErrors[i] = nil }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 38.3K bytes - Click Count (0) -
cmd/bucket-stats.go
// read lock before calling Clone() c = brs // We need to copy the map, so we do not reference the one in `brs`. c.Stats = make(map[string]*BucketReplicationStat, len(brs.Stats)) for arn, st := range brs.Stats { // make a copy of `*st` s := BucketReplicationStat{ ReplicatedSize: st.ReplicatedSize, ReplicaSize: st.ReplicaSize,
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 13.5K bytes - Click Count (0) -
callbacks/associations.go
} } } } } switch db.Statement.ReflectValue.Kind() { case reflect.Slice, reflect.Array: var ( rValLen = db.Statement.ReflectValue.Len() objs = make([]reflect.Value, 0, rValLen) fieldType = rel.Field.FieldType isPtr = fieldType.Kind() == reflect.Ptr ) if !isPtr { fieldType = reflect.PointerTo(fieldType) }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Thu Feb 13 06:16:26 GMT 2025 - 14.4K bytes - Click Count (0) -
docs_src/dependencies/tutorial006_an_py39.py
app = FastAPI() async def verify_token(x_token: Annotated[str, Header()]): if x_token != "fake-super-secret-token": raise HTTPException(status_code=400, detail="X-Token header invalid") async def verify_key(x_key: Annotated[str, Header()]): if x_key != "fake-super-secret-key": raise HTTPException(status_code=400, detail="X-Key header invalid") return x_key
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 633 bytes - Click Count (0) -
cmd/xl-storage-format-v2.go
BitrotChecksumAlgo: HighwayHash, ErasureDist: make([]uint8, len(fi.Erasure.Distribution)), PartNumbers: make([]int, len(fi.Parts)), PartETags: nil, PartSizes: make([]int64, len(fi.Parts)), PartActualSizes: make([]int64, len(fi.Parts)), MetaSys: make(map[string][]byte), MetaUser: make(map[string]string, len(fi.Metadata)), }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 65.6K bytes - Click Count (1) -
docs_src/dependencies/tutorial012_an_py39.py
from fastapi import Depends, FastAPI, Header, HTTPException async def verify_token(x_token: Annotated[str, Header()]): if x_token != "fake-super-secret-token": raise HTTPException(status_code=400, detail="X-Token header invalid") async def verify_key(x_key: Annotated[str, Header()]): if x_key != "fake-super-secret-key": raise HTTPException(status_code=400, detail="X-Key header invalid") return x_key
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 746 bytes - Click Count (0) -
clause/group_by.go
// MergeClause merge group by clause func (groupBy GroupBy) MergeClause(clause *Clause) { if v, ok := clause.Expression.(GroupBy); ok { copiedColumns := make([]Column, len(v.Columns)) copy(copiedColumns, v.Columns) groupBy.Columns = append(copiedColumns, groupBy.Columns...) copiedHaving := make([]Expression, len(v.Having)) copy(copiedHaving, v.Having) groupBy.Having = append(copiedHaving, groupBy.Having...) } clause.Expression = groupBy
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Tue Mar 30 10:28:09 GMT 2021 - 1K bytes - Click Count (0) -
cmd/metrics-v3-types.go
) []prometheus.Metric { metrics := make([]prometheus.Metric, 0, len(m.values)) for metricName, mv := range m.values { desc := m.descriptors[metricName] promDesc := desc.toPromDesc(namePrefix, extraLabels) for _, v := range mv { // labelValues is in the same order as the variable labels in the // descriptor. labelValues := make([]string, 0, len(v.Labels)) for _, k := range desc.VariableLabels {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Feb 28 19:33:08 GMT 2025 - 15.6K bytes - Click Count (0) -
docs_src/dependencies/tutorial012_py39.py
from fastapi import Depends, FastAPI, Header, HTTPException async def verify_token(x_token: str = Header()): if x_token != "fake-super-secret-token": raise HTTPException(status_code=400, detail="X-Token header invalid") async def verify_key(x_key: str = Header()): if x_key != "fake-super-secret-key": raise HTTPException(status_code=400, detail="X-Key header invalid") return x_key
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 696 bytes - Click Count (0)