Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. cmd/erasure-coding.go

    		for _, conf := range testConfigs {
    			failOnErr := func(err error) {
    				if err != nil {
    					logger.Fatal(errSelfTestFailure, "%v: error on self-test [d:%d,p:%d]: %v. Unsafe to start server.\n", algo, conf[0], conf[1], err)
    				}
    			}
    			e, err := NewErasure(context.Background(), int(conf[0]), int(conf[1]), blockSizeV2)
    			failOnErr(err)
    			encoded, err := e.EncodeData(GlobalContext, testData[:])
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top