@@ -111,7 +111,7 @@ func StopGracefully(
111111 //nolint:contextcheck
112112 _ , err := pluginRegistry .Run (
113113 pluginTimeoutCtx ,
114- map [string ]interface {} {"signal" : currentSignal },
114+ map [string ]any {"signal" : currentSignal },
115115 v1 .HookName_HOOK_NAME_ON_SIGNAL ,
116116 )
117117 if err != nil {
@@ -332,7 +332,7 @@ var runCmd = &cobra.Command{
332332 }
333333 }
334334
335- logger .Info ().Fields (map [string ]interface {} {
335+ logger .Info ().Fields (map [string ]any {
336336 "policies" : maps .Keys (actRegistry .Policies ),
337337 }).Msg ("Policies are loaded" )
338338
@@ -561,7 +561,7 @@ var runCmd = &cobra.Command{
561561 IdleTimeout : timeout ,
562562 }
563563
564- logger .Info ().Fields (map [string ]interface {} {
564+ logger .Info ().Fields (map [string ]any {
565565 "address" : address ,
566566 "timeout" : timeout .String (),
567567 "readHeaderTimeout" : readHeaderTimeout .String (),
@@ -605,7 +605,7 @@ var runCmd = &cobra.Command{
605605 pluginTimeoutCtx , cancel = context .WithTimeout (context .Background (), conf .Plugin .Timeout )
606606 defer cancel ()
607607
608- if data , ok := conf .GlobalKoanf .Get ("loggers" ).(map [string ]interface {} ); ok {
608+ if data , ok := conf .GlobalKoanf .Get ("loggers" ).(map [string ]any ); ok {
609609 _ , err = pluginRegistry .Run (
610610 pluginTimeoutCtx , data , v1 .HookName_HOOK_NAME_ON_NEW_LOGGER )
611611 if err != nil {
@@ -747,7 +747,7 @@ var runCmd = &cobra.Command{
747747 context .Background (), conf .Plugin .Timeout )
748748 defer cancel ()
749749
750- clientCfg := map [string ]interface {} {
750+ clientCfg := map [string ]any {
751751 "id" : client .ID ,
752752 "name" : configBlockName ,
753753 "group" : configGroupName ,
@@ -804,7 +804,7 @@ var runCmd = &cobra.Command{
804804 }
805805
806806 // Verify that the pool is properly populated.
807- logger .Info ().Fields (map [string ]interface {} {
807+ logger .Info ().Fields (map [string ]any {
808808 "name" : configBlockName ,
809809 "count" : strconv .Itoa (pools [configGroupName ][configBlockName ].Size ()),
810810 }).Msg ("There are clients available in the pool" )
@@ -824,7 +824,7 @@ var runCmd = &cobra.Command{
824824
825825 _ , err = pluginRegistry .Run (
826826 pluginTimeoutCtx ,
827- map [string ]interface {} {"name" : configBlockName , "size" : currentPoolSize },
827+ map [string ]any {"name" : configBlockName , "size" : currentPoolSize },
828828 v1 .HookName_HOOK_NAME_ON_NEW_POOL )
829829 if err != nil {
830830 logger .Error ().Err (err ).Msg ("Failed to run OnNewPool hooks" )
@@ -876,7 +876,7 @@ var runCmd = &cobra.Command{
876876 context .Background (), conf .Plugin .Timeout )
877877 defer cancel ()
878878
879- if data , ok := conf .GlobalKoanf .Get ("proxies" ).(map [string ]interface {} ); ok {
879+ if data , ok := conf .GlobalKoanf .Get ("proxies" ).(map [string ]any ); ok {
880880 _ , err = pluginRegistry .Run (
881881 pluginTimeoutCtx , data , v1 .HookName_HOOK_NAME_ON_NEW_PROXY )
882882 if err != nil {
@@ -947,7 +947,7 @@ var runCmd = &cobra.Command{
947947 context .Background (), conf .Plugin .Timeout )
948948 defer cancel ()
949949
950- if data , ok := conf .GlobalKoanf .Get ("servers" ).(map [string ]interface {} ); ok {
950+ if data , ok := conf .GlobalKoanf .Get ("servers" ).(map [string ]any ); ok {
951951 _ , err = pluginRegistry .Run (
952952 pluginTimeoutCtx , data , v1 .HookName_HOOK_NAME_ON_NEW_SERVER )
953953 if err != nil {
@@ -994,7 +994,7 @@ var runCmd = &cobra.Command{
994994 go httpServer .Start ()
995995
996996 logger .Info ().Fields (
997- map [string ]interface {} {
997+ map [string ]any {
998998 "network" : apiOptions .GRPCNetwork ,
999999 "address" : apiOptions .GRPCAddress ,
10001000 },
0 commit comments