@@ -410,7 +410,7 @@ and for complete usage:
410
410
{{% tabs Snippet All %}}
411
411
``` go
412
412
func readEvaluateProcess (br *bufio .Reader ) (terr error ) {
413
- ctx , _ := tag.New (context.Background (), tag.Insert (KeyMethod, " repl" ), tag.Insert (KeyStatus, " OK" ))
413
+ ctx , err := tag.New (context.Background (), tag.Insert (KeyMethod, " repl" ), tag.Insert (KeyStatus, " OK" ))
414
414
if err != nil {
415
415
return err
416
416
}
@@ -481,7 +481,7 @@ func main() {
481
481
// readEvaluateProcess reads a line from the input reader and
482
482
// then processes it. It returns an error if any was encountered.
483
483
func readEvaluateProcess (br *bufio .Reader ) (terr error ) {
484
- ctx , _ := tag.New (context.Background (), tag.Insert (KeyMethod, " repl" ), tag.Insert (KeyStatus, " OK" ))
484
+ ctx , err := tag.New (context.Background (), tag.Insert (KeyMethod, " repl" ), tag.Insert (KeyStatus, " OK" ))
485
485
if err != nil {
486
486
return err
487
487
}
@@ -603,7 +603,7 @@ Now we will record the desired metrics. To do so, we will use `stats.Record` and
603
603
{{% tabs Snippet All %}}
604
604
``` go
605
605
func readEvaluateProcess (br *bufio .Reader ) (terr error ) {
606
- ctx , _ := tag.New (context.Background (), tag.Insert (KeyMethod, " repl" ), tag.Insert (KeyStatus, " OK" ))
606
+ ctx , err := tag.New (context.Background (), tag.Insert (KeyMethod, " repl" ), tag.Insert (KeyStatus, " OK" ))
607
607
if err != nil {
608
608
return err
609
609
}
@@ -702,7 +702,7 @@ func main() {
702
702
// readEvaluateProcess reads a line from the input reader and
703
703
// then processes it. It returns an error if any was encountered.
704
704
func readEvaluateProcess (br *bufio .Reader ) (terr error ) {
705
- ctx , _ := tag.New (context.Background (), tag.Insert (KeyMethod, " repl" ), tag.Insert (KeyStatus, " OK" ))
705
+ ctx , err := tag.New (context.Background (), tag.Insert (KeyMethod, " repl" ), tag.Insert (KeyStatus, " OK" ))
706
706
if err != nil {
707
707
return err
708
708
}
@@ -826,7 +826,7 @@ func main() {
826
826
// readEvaluateProcess reads a line from the input reader and
827
827
// then processes it. It returns an error if any was encountered.
828
828
func readEvaluateProcess (br *bufio .Reader ) (terr error ) {
829
- ctx , _ := tag.New (context.Background (), tag.Insert (KeyMethod, " repl" ), tag.Insert (KeyStatus, " OK" ))
829
+ ctx , err := tag.New (context.Background (), tag.Insert (KeyMethod, " repl" ), tag.Insert (KeyStatus, " OK" ))
830
830
if err != nil {
831
831
return err
832
832
}
@@ -987,7 +987,7 @@ func main() {
987
987
// readEvaluateProcess reads a line from the input reader and
988
988
// then processes it. It returns an error if any was encountered.
989
989
func readEvaluateProcess (br *bufio .Reader ) (terr error ) {
990
- ctx , _ := tag.New (context.Background (), tag.Insert (KeyMethod, " repl" ), tag.Insert (KeyStatus, " OK" ))
990
+ ctx , err := tag.New (context.Background (), tag.Insert (KeyMethod, " repl" ), tag.Insert (KeyStatus, " OK" ))
991
991
if err != nil {
992
992
return err
993
993
}
@@ -1148,7 +1148,7 @@ func main() {
1148
1148
// readEvaluateProcess reads a line from the input reader and
1149
1149
// then processes it. It returns an error if any was encountered.
1150
1150
func readEvaluateProcess (br *bufio .Reader ) (terr error ) {
1151
- ctx , _ := tag.New (context.Background (), tag.Insert (KeyMethod, " repl" ), tag.Insert (KeyStatus, " OK" ))
1151
+ ctx , err := tag.New (context.Background (), tag.Insert (KeyMethod, " repl" ), tag.Insert (KeyStatus, " OK" ))
1152
1152
if err != nil {
1153
1153
return err
1154
1154
}
@@ -1373,7 +1373,7 @@ func main() {
1373
1373
// readEvaluateProcess reads a line from the input reader and
1374
1374
// then processes it. It returns an error if any was encountered.
1375
1375
func readEvaluateProcess (br *bufio .Reader ) (terr error ) {
1376
- ctx , _ := tag.New (context.Background (), tag.Insert (KeyMethod, " repl" ), tag.Insert (KeyStatus, " OK" ))
1376
+ ctx , err := tag.New (context.Background (), tag.Insert (KeyMethod, " repl" ), tag.Insert (KeyStatus, " OK" ))
1377
1377
if err != nil {
1378
1378
return err
1379
1379
}
0 commit comments