Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for failOnErr (0.22 sec)

  1. cmd/object-api-utils.go

    		data[i] = byte(rng.Int63() & 3)
    	}
    	failOnErr := func(err error) {
    		if err != nil {
    			logger.Fatal(errSelfTestFailure, "compress: error on self-test: %v", err)
    		}
    	}
    	const skip = 2<<20 + 511
    	r, _ := newS2CompressReader(bytes.NewBuffer(data), int64(len(data)), true)
    	b, err := io.ReadAll(r)
    	failOnErr(err)
    	failOnErr(r.Close())
    	// Decompression reader.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
Back to top