- Sort Score
- Result 10 results
- Languages All
Results 311 - 320 of 584 for Ok (0.01 sec)
-
cmd/notification.go
continue } for opts := range report.BucketStats { d, ok := consolidatedReport.BucketStats[opts] if !ok { d = bandwidth.Details{ LimitInBytesPerSecond: report.BucketStats[opts].LimitInBytesPerSecond, } } dt, ok := report.BucketStats[opts] if ok { d.CurrentBandwidthInBytesPerSecond += dt.CurrentBandwidthInBytesPerSecond }Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 46K bytes - Viewed (0) -
cmd/xl-storage-disk-id-check.go
// that is not io.EOF. func diskHealthCheckOK(ctx context.Context, err error) bool { // Check if context has a disk health check. tracker, ok := ctx.Value(healthDiskCtxKey{}).(*healthDiskCtxValue) if !ok { // No tracker, return return err == nil || errors.Is(err, io.EOF) } if err == nil || errors.Is(err, io.EOF) { tracker.logSuccess() return true }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Apr 25 05:41:04 UTC 2025 - 34.5K bytes - Viewed (0) -
docs/es/docs/advanced/response-change-status-code.md
Pero en algunos casos necesitas devolver un código de estado diferente al predeterminado. ## Caso de uso { #use-case } Por ejemplo, imagina que quieres devolver un código de estado HTTP de "OK" `200` por defecto. Pero si los datos no existieran, quieres crearlos y devolver un código de estado HTTP de "CREATED" `201`. Pero todavía quieres poder filtrar y convertir los datos que devuelves con un `response_model`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 1.7K bytes - Viewed (0) -
cmd/data-scanner.go
} }, // Some disks have data for this. partial: func(entries metaCacheEntries, errs []error) { if !f.shouldHeal() { cancel() return } entry, ok := entries.resolve(&resolver) if !ok { // check if we can get one entry at least // proceed to heal nonetheless, since // this object might be dangling. entry, _ = entries.firstFound() }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 45.5K bytes - Viewed (0) -
tests/query_test.go
switch name { case "Name": if _, ok := first[dbName].(string); !ok { t.Errorf("invalid data type for %v, got %#v", dbName, first[dbName]) } case "Age": if _, ok := first[dbName].(uint); !ok { t.Errorf("invalid data type for %v, got %#v", dbName, first[dbName]) } case "Birthday": if _, ok := first[dbName].(*time.Time); !ok {Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Tue Jul 22 06:21:04 UTC 2025 - 51K bytes - Viewed (0) -
cmd/object-api-errors.go
apiErr := InsufficientReadQuorum{} if len(params) >= 1 { apiErr.Bucket = params[0] } if len(params) >= 2 { apiErr.Object = decodeDirObject(params[1]) } if v, ok := oerr.(InsufficientReadQuorum); ok { apiErr.Type = v.Type } return apiErr case errErasureWriteQuorum.Error(): apiErr := InsufficientWriteQuorum{} if len(params) >= 1 { apiErr.Bucket = params[0] }Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 09 02:05:14 UTC 2024 - 22.1K bytes - Viewed (0) -
cmd/batch-expire.go
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Apr 22 11:16:32 UTC 2025 - 23K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/ConsoleIconTest.java
void shouldReturnAsciiFallbackWhenTerminalUsesAscii() { Terminal mockTerminal = mock(Terminal.class); when(mockTerminal.encoding()).thenReturn(StandardCharsets.US_ASCII); assertEquals("[OK]", ConsoleIcon.SUCCESS.getIcon(mockTerminal)); assertEquals("[ERROR]", ConsoleIcon.ERROR.getIcon(mockTerminal)); assertEquals("[WARNING]", ConsoleIcon.WARNING.getIcon(mockTerminal));
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Jul 15 09:35:08 UTC 2025 - 6.8K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Init.java
import static org.apache.maven.cling.invoker.mvnenc.EncryptInvoker.BAD_OPERATION; import static org.apache.maven.cling.invoker.mvnenc.EncryptInvoker.CANCELED; import static org.apache.maven.cling.invoker.mvnenc.EncryptInvoker.OK; /** * The "init" goal. */ @Singleton @Named("init") public class Init extends InteractiveGoalSupport { private static final String NONE = "__none__"; @Inject
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jun 11 13:14:09 UTC 2025 - 12K bytes - Viewed (0) -
cmd/bucket-replication-utils_test.go
t.Errorf("Test%d (%s): Invalid number of entries in targetsMap got %d , want %d", i+1, test.name, len(dsc.targetsMap), len(test.expDsc.targetsMap)) } for arn, tdsc := range dsc.targetsMap { expDsc, ok := test.expDsc.targetsMap[arn] if !ok || expDsc != tdsc { t.Errorf("Test%d (%s): Invalid target replicate decision: got %+v, want %+v", i+1, test.name, tdsc, expDsc) } } } } var replicationStateTest = []struct {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Apr 09 14:28:39 UTC 2025 - 9.3K bytes - Viewed (0)