Sfoglia il codice sorgente

파이프 통신은 그냥 바이트 써도 잘 작동하는 듯

잉여개발기 (SPDV) 1 anno fa
parent
commit
a40905c80d
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      route/tool/func.py

+ 2 - 2
route/tool/func.py

@@ -117,7 +117,7 @@ def python_to_golang_sync(func_name, other_set = {}):
     if other_set == {}:
         other_set = '{}'
     else:
-        other_set = orjson.dumps(other_set).decode('utf-8')
+        other_set = orjson.dumps(other_set)
 
     if platform.system() == 'Linux':
         if platform.machine() in ["AMD64", "x86_64"]:
@@ -156,7 +156,7 @@ async def python_to_golang(func_name, other_set = {}):
     if other_set == {}:
         other_set = '{}'
     else:
-        other_set = orjson.dumps(other_set).decode('utf-8')
+        other_set = orjson.dumps(other_set)
 
     if platform.system() == 'Linux':
         if platform.machine() in ["AMD64", "x86_64"]: